From 3e7fc229ab83090dc48c8df244582ae4ad3e0d01 Mon Sep 17 00:00:00 2001 From: michi_cc Date: Wed, 26 May 2010 03:31:05 +0000 Subject: (svn r19895) -Fix [FS#3836]: Git version detection would sometimes mistakenly identify a checkout as modified. --- projects/determineversion.vbs | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'projects') diff --git a/projects/determineversion.vbs b/projects/determineversion.vbs index 1c6f48552..0b4f27643 100755 --- a/projects/determineversion.vbs +++ b/projects/determineversion.vbs @@ -171,6 +171,14 @@ Function DetermineSVNVersion() If oExec.ExitCode = 0 Then hash = oExec.StdOut.ReadLine() version = "g" & Mid(hash, 1, 8) + ' Make sure index is in sync with disk + Set oExec = WshShell.Exec("git update-index --refresh") + If Err.Number = 0 Then + ' Wait till the application is finished ... + Do While oExec.Status = 0 + WScript.Sleep 10 + Loop + End If Set oExec = WshShell.Exec("git diff-index --exit-code --quiet HEAD ../src") If Err.Number = 0 Then ' Wait till the application is finished ... -- cgit v1.2.3-70-g09d2