connect: improve check for plink to reduce false positives
[gitweb.git] / t / t5000-tar-tree.sh
index a1d902de1fa1c573c63c84f7f2d14acf4a6dc66f..4b68bbafbe9016d66ce4f96f2058ac67640ed147 100755 (executable)
@@ -305,4 +305,18 @@ test_expect_success GZIP 'remote tar.gz can be disabled' '
                >remote.tar.gz
 '
 
+test_expect_success 'archive and :(glob)' '
+       git archive -v HEAD -- ":(glob)**/sh" >/dev/null 2>actual &&
+       cat >expect <<EOF &&
+a/
+a/bin/
+a/bin/sh
+EOF
+       test_cmp expect actual
+'
+
+test_expect_success 'catch non-matching pathspec' '
+       test_must_fail git archive -v HEAD -- "*.abc" >/dev/null
+'
+
 test_done