]> git.ipfire.org Git - thirdparty/git.git/blobdiff - t/t5004-archive-corner-cases.sh
Merge branch 'es/maintenance-of-bare-repositories'
[thirdparty/git.git] / t / t5004-archive-corner-cases.sh
index 3e7b23cb32c581b88473b596036517a38c51c9fd..2d32d0ed122277089966b44f015b5f8ff6765e1c 100755 (executable)
@@ -153,7 +153,8 @@ test_expect_success ZIPINFO 'zip archive with many entries' '
 
        # check the number of entries in the ZIP file directory
        expr 65536 + 256 >expect &&
-       "$ZIPINFO" many.zip | head -2 | sed -n "2s/.* //p" >actual &&
+       "$ZIPINFO" -h many.zip >zipinfo &&
+       sed -n "2s/.* //p" <zipinfo >actual &&
        test_cmp expect actual
 '