summaryrefslogtreecommitdiff
path: root/t
diff options
context:
space:
mode:
authorRené Scharfe <rene.scharfe@lsrfire.ath.cx>2013-05-09 13:10:48 (GMT)
committerJunio C Hamano <gitster@pobox.com>2013-05-09 19:18:57 (GMT)
commitabdb9b2e4fd7876ab7138119c4aedca70bc0d250 (patch)
tree17267b503636fbf407658015d36a0937d2f36516 /t
parente2161bc38514722050b3a9c50a7897c40b6a93cf (diff)
downloadgit-abdb9b2e4fd7876ab7138119c4aedca70bc0d250.zip
git-abdb9b2e4fd7876ab7138119c4aedca70bc0d250.tar.gz
git-abdb9b2e4fd7876ab7138119c4aedca70bc0d250.tar.bz2
t5004: ignore pax global header file
Versions of tar that don't know pax headers -- like the ones in NetBSD 6 and OpenBSD 5.2 -- extract them as regular files. Explicitly ignore the file created for our global header when checking the list of extracted files, as this is normal and harmless fall-back behaviour. This fixes test 3 of t5004 on these platforms. Signed-off-by: Rene Scharfe <rene.scharfe@lsrfire.ath.cx> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't')
-rwxr-xr-xt/t5004-archive-corner-cases.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/t/t5004-archive-corner-cases.sh b/t/t5004-archive-corner-cases.sh
index bfdb56a..ddf6e35 100755
--- a/t/t5004-archive-corner-cases.sh
+++ b/t/t5004-archive-corner-cases.sh
@@ -23,7 +23,7 @@ check_dir() {
echo "$dir/$i"
done
} | sort >expect &&
- find "$dir" -print | sort >actual &&
+ find "$dir" ! -name pax_global_header -print | sort >actual &&
test_cmp expect actual
}