Merge branch 'mt/send-email-cc-match-fix'
[gitweb.git] / t / t5801-remote-helpers.sh
index 443e228ec5d34d293e1fdcf60ee4074c57e04549..4899af3f7abfb567017e0d64c7961c22beb5b749 100755 (executable)
@@ -6,11 +6,7 @@
 test_description='Test remote-helper import and export commands'
 
 . ./test-lib.sh
-
-if ! type "${BASH-bash}" >/dev/null 2>&1; then
-       skip_all='skipping remote-testgit tests, bash not available'
-       test_done
-fi
+. "$TEST_DIRECTORY"/lib-gpg.sh
 
 compare_refs() {
        git --git-dir="$1/.git" rev-parse --verify $2 >expect &&
@@ -155,6 +151,25 @@ test_expect_success 'push ref with existing object' '
        compare_refs local dup server dup
 '
 
+test_expect_success GPG 'push signed tag' '
+       (cd local &&
+       git checkout master &&
+       git tag -s -m signed-tag signed-tag &&
+       git push origin 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_expect_success 'push update refs' '
        (cd local &&
        git checkout -b update master &&