Skip to contentSkip to conversation

Fix timestamp for test-tick

PATCH In review Junio C Hamano 1 participant 1 message Jun 15, 2016

lore
Share & tools
lore
#0 lore raw

PATCH 1/5 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.

---
 t/test-lib.sh |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)
t/test-lib.sh +3 -3
index bf108d4..72ea2b2 100755
@@ -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
 }
 
Signature · 1 line
1.5.0.rc0.ge0f6