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>
Junio C Hamano committed
Jan 6, 2007 at 02:16 UTC
21afc41c363cdfbc33285291d92635741163e6a1
1 file changed
+3
-3
t/test-lib.sh
+3
-3
@@ -99,12 +99,12 @@ trap 'echo >&5 "FATAL: Unexpected exit with code $?"; exit 1' exit
99
test_tick () {
100
if test -z "${test_tick+set}"
101
then
102
- test_tick=432630000
102
+ test_tick=1112911993
103
else
104
test_tick=$(($test_tick + 60))
105
fi
106
- GIT_COMMITTER_DATE=$test_tick
107
- GIT_AUTHOR_DATE=$test_tick
106
+ GIT_COMMITTER_DATE="$test_tick -0700"
107
+ GIT_AUTHOR_DATE="$test_tick -0700"
108
export GIT_COMMITTER_DATE GIT_AUTHOR_DATE
109
}
110