git/list[1] front-page[2] threads[3] people[4] search[5] about
 

[PATCH 1/5] Fix timestamp for test-tick

From
Junio C Hamano <junkio@cox.net>
Date
Jan 6, 2007, 10:16 UTC
Message-ID
<7vbqlc795k.fsf@assigned-by-dhcp.cox.net>

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>
---
 t/test-lib.sh |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/t/test-lib.sh b/t/test-lib.sh
index bf108d4..72ea2b2 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
 }
 
-- 
1.5.0.rc0.ge0f6
Message 1 of 1 in “Fix timestamp for test-tick”
  1. 1/5 Fix timestamp for test-tickJunio C Hamano, Jan 6, 2007

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.