author | Jeff King <peff@peff.net> | |
Tue, 13 May 2008 08:45:32 +0000 (04:45 -0400) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Wed, 14 May 2008 04:45:28 +0000 (21:45 -0700) | ||
commit | 30684dfaf8cf96e5afc01668acc01acc0ade59db | |
tree | 2b9ef28561b52ffa470a1084d4f796a2c0fc6b80 | tree | snapshot |
parent | bbf08124e0a87658a76b53a05d67227fa3b4e7b9 | commit | diff |
t5000: tar portability fix
The output of 'tar tv' varies from system to system. In
particular, the t5000 was expecting to parse the date from
something like:
-rw-rw-r-- root/root 0 2008-05-13 04:27 file
but FreeBSD's tar produces this:
-rw-rw-r-- 0 root root 0 May 13 04:27 file
Instead of relying on tar's output, let's just extract the
file using tar and stat the result using perl.
Signed-off-by: Jeff King <peff@peff.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
The output of 'tar tv' varies from system to system. In
particular, the t5000 was expecting to parse the date from
something like:
-rw-rw-r-- root/root 0 2008-05-13 04:27 file
but FreeBSD's tar produces this:
-rw-rw-r-- 0 root root 0 May 13 04:27 file
Instead of relying on tar's output, let's just extract the
file using tar and stat the result using perl.
Signed-off-by: Jeff King <peff@peff.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
t/t5000-tar-tree.sh | diff | blob | history |