]> git.ipfire.org Git - thirdparty/git.git/blobdiff - t/t5534-push-signed.sh
send-pack: send feature request on push-cert packet
[thirdparty/git.git] / t / t5534-push-signed.sh
index 4198b6a2fbf2164476ee84c7f4122c5a12b92839..2f4b74ed8303e4fd638f1850a471c5410276a5b7 100755 (executable)
@@ -73,6 +73,19 @@ test_expect_success 'push --signed fails with a receiver without push certificat
        test_i18ngrep "the receiving end does not support" err
 '
 
+test_expect_success GPG 'no certificate for a signed push with no update' '
+       prepare_dst &&
+       mkdir -p dst/.git/hooks &&
+       write_script dst/.git/hooks/post-receive <<-\EOF &&
+       if test -n "${GIT_PUSH_CERT-}"
+       then
+               git cat-file blob $GIT_PUSH_CERT >../push-cert
+       fi
+       EOF
+       git push dst noop &&
+       ! test -f dst/push-cert
+'
+
 test_expect_success GPG 'signed push sends push certificate' '
        prepare_dst &&
        mkdir -p dst/.git/hooks &&