diff options
author | Sitaram Chamarty <sitaram@atc.tcs.com> | 2012-04-28 04:54:05 +0530 |
---|---|---|
committer | Sitaram Chamarty <sitaram@atc.tcs.com> | 2012-04-28 04:55:49 +0530 |
commit | 7d6b04605d5caad2475005592c6eece6f9e18d70 (patch) | |
tree | 08f351dbfe996fc2b3b8eb7d51d03e9b427bdeb5 | |
parent | (minor) add titles to rendered HTML docs (diff) | |
download | gitolite-gentoo-7d6b04605d5caad2475005592c6eece6f9e18d70.tar.gz gitolite-gentoo-7d6b04605d5caad2475005592c6eece6f9e18d70.tar.bz2 gitolite-gentoo-7d6b04605d5caad2475005592c6eece6f9e18d70.zip |
fix test suite's dependency on time zone
I had not remembered that the 'tc' subcommand in tsh adds *text* that
contains the current time, so commit SHAs were changing.
Thanks to milki for catching this, and in fact being the only person who
ever appears to have attempted to run the test suite at all!
-rw-r--r-- | src/lib/Gitolite/Test/Tsh.pm | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/Gitolite/Test/Tsh.pm b/src/lib/Gitolite/Test/Tsh.pm index 581a844..2097acd 100644 --- a/src/lib/Gitolite/Test/Tsh.pm +++ b/src/lib/Gitolite/Test/Tsh.pm @@ -583,7 +583,7 @@ sub dummy_commits { test_tick(); next; } - my $ts = ( $tick ? localtime($tick) : localtime() ); + my $ts = ( $tick ? gmtime($tick+19800) : gmtime() ); _sh("echo $f at $ts >> $f && git add $f && git commit -m '$f at $ts'"); } } |