Changeset - r19871:c3ebfcae0fbd
[Not reviewed]
master
0 1 0
glx - 12 years ago 2012-12-19 02:42:25
glx@openttd.org
(svn r24826) -Fix: determineversion.vbs could hang in a git checkout
1 file changed with 3 insertions and 0 deletions:
0 comments (0 inline, 0 general)
projects/determineversion.vbs
Show inline comments
 
@@ -174,12 +174,15 @@ 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
 
					' StdOut and StdErr share a 4kB buffer so prevent it from filling up as we don't care about the output
 
					oExec.StdOut.Close
 
					oExec.StdErr.Close
 
					' 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 ../")
0 comments (0 inline, 0 general)