summaryrefslogtreecommitdiff
path: root/t/t5000-tar-tree.sh
diff options
context:
space:
mode:
authorBrad Roberts <braddr@puremagic.com>2005-08-13 10:22:46 (GMT)
committerJunio C Hamano <junkio@cox.net>2005-08-14 01:28:54 (GMT)
commite54c5ea93e0785dfd37fd9201797977a02ca0ddb (patch)
tree44b07cd9209b0d75d6c3a84e66608fc489be7cf3 /t/t5000-tar-tree.sh
parent31f584c242e7af28018ff920b6c8d1952beadbd4 (diff)
downloadgit-e54c5ea93e0785dfd37fd9201797977a02ca0ddb.zip
git-e54c5ea93e0785dfd37fd9201797977a02ca0ddb.tar.gz
git-e54c5ea93e0785dfd37fd9201797977a02ca0ddb.tar.bz2
[PATCH] fix null TZ problems on os/x
It seems that the localtime() libc routine doesn't care for finding a TZ that's empty. It's ok with TZ not being set. Setting the TZ to GMT allowed these tests to pass. $ uname -v Darwin Kernel Version 7.9.0: Wed Mar 30 20:11:17 PST 2005; root:xnu/xnu-517.12.7.obj~1/RELEASE_PPC Signed-off-by: Brad Roberts <braddr@puremagic.com> Signed-off-by: Junio C Hamano <junkio@cox.net>
Diffstat (limited to 't/t5000-tar-tree.sh')
-rwxr-xr-xt/t5000-tar-tree.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/t/t5000-tar-tree.sh b/t/t5000-tar-tree.sh
index 6d72ed3..abce669 100755
--- a/t/t5000-tar-tree.sh
+++ b/t/t5000-tar-tree.sh
@@ -41,7 +41,7 @@ test_expect_success \
find a -type l | xargs git-update-cache --add &&
treeid=`git-write-tree` &&
echo $treeid >treeid &&
- TZ= GIT_COMMITTER_DATE="2005-05-27 22:00:00" \
+ TZ=GMT GIT_COMMITTER_DATE="2005-05-27 22:00:00" \
git-commit-tree $treeid </dev/null >.git/HEAD'
test_expect_success \
@@ -50,7 +50,7 @@ test_expect_success \
test_expect_success \
'validate file modification time' \
- 'TZ= tar tvf b.tar a/a |
+ 'TZ=GMT 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 &&