Changeset - r7975:f76f5c0274bd
[Not reviewed]
master
0 1 0
rubidium - 17 years ago 2007-11-26 23:28:29
rubidium@openttd.org
(svn r11531) -Fix [FS#1459]: version determination did stall (read: never finish) when both svn and git were not installed.
1 file changed with 1 insertions and 4 deletions:
0 comments (0 inline, 0 general)
projects/determineversion.vbs
Show inline comments
 
@@ -127,10 +127,7 @@ Function DetermineSVNVersion()
 
		' svn detection failed, reset error and try git
 
		Err.Clear
 
		Set oExec = WshShell.Exec("git rev-parse --verify --short=8 HEAD")
 
		Do While oExec.Status = 0 And Err.Number = 0
 
			' Wait till command has finished
 
		Loop
 
		If Err.Number = 0 And oExec.ExitCode = 0 Then
 
		If Err.Number = 0 Then
 
			version = "g" & oExec.StdOut.ReadLine()
 
			Set oExec = WshShell.Exec("git diff-index --exit-code --quiet HEAD ../src")
 
			Do While oExec.Status = 0 And Err.Number = 0
0 comments (0 inline, 0 general)