summaryrefslogtreecommitdiff
path: root/t/t5000-tar-tree.sh
diff options
context:
space:
mode:
authorMark Allen <mrallen1@yahoo.com>2005-06-14 17:09:39 (GMT)
committerLinus Torvalds <torvalds@ppc970.osdl.org>2005-06-14 19:08:06 (GMT)
commit7737314de711aa3a2e4201355777cd41fb791c98 (patch)
tree70511d286d51a8543526cd31374cc91f280f345c /t/t5000-tar-tree.sh
parentfc865468d88d45e76e21a9db2445a4b970f7423b (diff)
downloadgit-7737314de711aa3a2e4201355777cd41fb791c98.zip
git-7737314de711aa3a2e4201355777cd41fb791c98.tar.gz
git-7737314de711aa3a2e4201355777cd41fb791c98.tar.bz2
[PATCH] Unset TZ in t5000
Unset TZ to force GMT in test #4 and add a set of parens around the length function in the awk script. Signed-off-by: Mark Allen <mrallen1@yahoo.com> Acked-by: Rene Scharfe <rene.scharfe@lsrfire.ath.cx> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 't/t5000-tar-tree.sh')
-rw-r--r--t/t5000-tar-tree.sh5
1 files changed, 3 insertions, 2 deletions
diff --git a/t/t5000-tar-tree.sh b/t/t5000-tar-tree.sh
index fdd9957..6d72ed3 100644
--- a/t/t5000-tar-tree.sh
+++ b/t/t5000-tar-tree.sh
@@ -50,8 +50,9 @@ test_expect_success \
test_expect_success \
'validate file modification time' \
- 'tar tvf b.tar a/a |
- awk \{print\ \$4,\ length\(\$5\)\<7\ ?\ \$5\":00\"\ :\ \$5\} >b.mtime &&
+ 'TZ= tar tvf b.tar a/a |
+ awk \{print\ \$4,\ \(length\(\$5\)\<7\)\ ?\ \$5\":00\"\ :\ \$5\} \
+ >b.mtime &&
echo "2005-05-27 22:00:00" >expected.mtime &&
diff expected.mtime b.mtime'