aboutsummaryrefslogtreecommitdiff
path: root/t/test-lib.sh
diff options
context:
space:
mode:
authorJunio C Hamano <junkio@cox.net>2007-01-06 02:16:07 -0800
committerJunio C Hamano <junkio@cox.net>2007-01-06 02:17:06 -0800
commit21afc41c363cdfbc33285291d92635741163e6a1 (patch)
treef3e5d95f9b4a3ebbc831c12cc03e11b410a9ab5d /t/test-lib.sh
parent16157b8074926348a9ee191ce6b50c8e1656161c (diff)
downloadgit-21afc41c363cdfbc33285291d92635741163e6a1.tar.gz
git-21afc41c363cdfbc33285291d92635741163e6a1.tar.xz
Fix timestamp for test-tick
The earlier test timestamp was too old; I forgot that the bare unixtime integer had to be after Jan 1, 2000. This changes test_tick to use the git-epoch timestamp. Signed-off-by: Junio C Hamano <junkio@cox.net>
Diffstat (limited to 't/test-lib.sh')
-rwxr-xr-xt/test-lib.sh6
1 files changed, 3 insertions, 3 deletions
diff --git a/t/test-lib.sh b/t/test-lib.sh
index bf108d422..72ea2b259 100755
--- a/t/test-lib.sh
+++ b/t/test-lib.sh
@@ -99,12 +99,12 @@ trap 'echo >&5 "FATAL: Unexpected exit with code $?"; exit 1' exit
test_tick () {
if test -z "${test_tick+set}"
then
- test_tick=432630000
+ test_tick=1112911993
else
test_tick=$(($test_tick + 60))
fi
- GIT_COMMITTER_DATE=$test_tick
- GIT_AUTHOR_DATE=$test_tick
+ GIT_COMMITTER_DATE="$test_tick -0700"
+ GIT_AUTHOR_DATE="$test_tick -0700"
export GIT_COMMITTER_DATE GIT_AUTHOR_DATE
}