]> git.ipfire.org Git - thirdparty/git.git/blobdiff - t/t5801-remote-helpers.sh
transport-helper: add 'signed-tags' capability
[thirdparty/git.git] / t / t5801-remote-helpers.sh
index 9b287db650ae8042d7da3be2331a95e94421032d..69212cdde14c012261eabc4ac9b2e5956213f8d5 100755 (executable)
@@ -173,7 +173,17 @@ test_expect_success GPG 'push signed tag' '
        git tag -s -m signed-tag signed-tag &&
        git push origin signed-tag
        ) &&
-       compare_refs local signed-tag^{} server signed-tag^{}
+       compare_refs local signed-tag^{} server signed-tag^{} &&
+       test_must_fail compare_refs local signed-tag server signed-tag
+'
+
+test_expect_success GPG 'push signed tag with signed-tags capability' '
+       (cd local &&
+       git checkout master &&
+       git tag -s -m signed-tag signed-tag-2 &&
+       GIT_REMOTE_TESTGIT_SIGNED_TAGS=1 git push origin signed-tag-2
+       ) &&
+       compare_refs local signed-tag-2 server signed-tag-2
 '
 
 test_done