From 1bd8a9445d9bba463fb1edb758d7760fbf53b03a Mon Sep 17 00:00:00 2001 From: Alex Riesen Date: Wed, 29 Oct 2008 10:22:15 +0100 Subject: [PATCH] Use find instead of perl in t5000 to get file modification time The test was broken on admittedly broken combination of Windows, Cygwin, and ActiveState Perl. Signed-off-by: Alex Riesen --- t/t5000-tar-tree.sh | 6 ++++-- 1 files changed, 4 insertions(+), 2 deletions(-) diff --git a/t/t5000-tar-tree.sh b/t/t5000-tar-tree.sh index 0f27d73..4eabebd 100755 --- a/t/t5000-tar-tree.sh +++ b/t/t5000-tar-tree.sh @@ -26,6 +26,8 @@ commit id embedding: . ./test-lib.sh UNZIP=${UNZIP:-unzip} +TZ=GMT +export TZ SUBSTFORMAT=%H%n @@ -54,7 +56,7 @@ test_expect_success \ find a -type l | xargs git update-index --add && treeid=`git write-tree` && echo $treeid >treeid && - git update-ref HEAD $(TZ=GMT GIT_COMMITTER_DATE="2005-05-27 22:00:00" \ + git update-ref HEAD $(GIT_COMMITTER_DATE="2005-05-27 22:00:00" \ git commit-tree $treeid b.mtime && + find extract/a/a -printf "%T@\\n" >b.mtime && echo "1117231200" >expected.mtime && diff expected.mtime b.mtime' -- 1.6.0.3.549.gb475d