Merge branch 'js/t5000-dont-copy-bin-sh'
authorJunio C Hamano <gitster@pobox.com>
Mon, 22 Dec 2014 20:26:43 +0000 (12:26 -0800)
committerJunio C Hamano <gitster@pobox.com>
Mon, 22 Dec 2014 20:26:43 +0000 (12:26 -0800)
* js/t5000-dont-copy-bin-sh:
t5000 on Windows: do not mistake "sh.exe" as "sh"

1  2 
t/t5000-tar-tree.sh
diff --combined t/t5000-tar-tree.sh
index d01bbdc968a0fcde9eb5410793f8a22108ee6c2d,a1d902de1fa1c573c63c84f7f2d14acf4a6dc66f..4b68bbafbe9016d66ce4f96f2058ac67640ed147
@@@ -101,7 -101,7 +101,7 @@@ test_expect_success 
       ten=0123456789 && hundred=$ten$ten$ten$ten$ten$ten$ten$ten$ten$ten &&
       echo long filename >a/four$hundred &&
       mkdir a/bin &&
-      cp /bin/sh a/bin &&
+      test-genrandom "frotz" 500000 >a/bin/sh &&
       printf "A\$Format:%s\$O" "$SUBSTFORMAT" >a/substfile1 &&
       printf "A not substituted O" >a/substfile2 &&
       if test_have_prereq SYMLINKS; then
@@@ -305,18 -305,4 +305,18 @@@ test_expect_success GZIP 'remote tar.g
                >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