From 7b3fab877d468a51bab6050385ab701697301c62 Mon Sep 17 00:00:00 2001 From: Michael Spang Date: Mon, 12 Feb 2007 19:33:37 -0500 Subject: Work around Subversion race in git-svn tests. Some of the git-svn tests can fail on fast machines due to a race in Subversion: if a file is modified in the same second it was checked out (or in for that matter), Subversion will not consider it modified. This works around the problem by increasing the timestamp by one second before each commit. [jc: with "touch -r -d" replacement from Eric] Acked-by: Eric Wong Signed-off-by: Michael Spang Signed-off-by: Junio C Hamano --- t/lib-git-svn.sh | 3 +++ 1 file changed, 3 insertions(+) (limited to 't/lib-git-svn.sh') diff --git a/t/lib-git-svn.sh b/t/lib-git-svn.sh index bb1d7b84bc..67d08cf740 100644 --- a/t/lib-git-svn.sh +++ b/t/lib-git-svn.sh @@ -45,3 +45,6 @@ fi svnrepo="file://$svnrepo" +poke() { + perl -e '@x = stat($ARGV[0]); utime($x[8], $x[9] + 1, $ARGV[0])' "$1" +} -- cgit v1.2.3