(svn r24826) -Fix: determineversion.vbs could hang in a git checkout
This commit is contained in:
		@@ -177,6 +177,9 @@ Function DetermineSVNVersion()
 | 
				
			|||||||
				' Make sure index is in sync with disk
 | 
									' Make sure index is in sync with disk
 | 
				
			||||||
				Set oExec = WshShell.Exec("git update-index --refresh")
 | 
									Set oExec = WshShell.Exec("git update-index --refresh")
 | 
				
			||||||
				If Err.Number = 0 Then
 | 
									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 ...
 | 
										' Wait till the application is finished ...
 | 
				
			||||||
					Do While oExec.Status = 0
 | 
										Do While oExec.Status = 0
 | 
				
			||||||
						WScript.Sleep 10
 | 
											WScript.Sleep 10
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user