summaryrefslogtreecommitdiff
path: root/projects
diff options
context:
space:
mode:
authorglx <glx@openttd.org>2012-12-19 02:42:25 +0000
committerglx <glx@openttd.org>2012-12-19 02:42:25 +0000
commit510fe5f1960312bd8b8c230d65bc430f5c558f48 (patch)
tree9771157a18af596c9089ea1734d6513b3921ee2f /projects
parentf54e74a5129840805fd64064997ab1733125b8f9 (diff)
downloadopenttd-510fe5f1960312bd8b8c230d65bc430f5c558f48.tar.xz
(svn r24826) -Fix: determineversion.vbs could hang in a git checkout
Diffstat (limited to 'projects')
-rwxr-xr-xprojects/determineversion.vbs3
1 files changed, 3 insertions, 0 deletions
diff --git a/projects/determineversion.vbs b/projects/determineversion.vbs
index e16da751d..e738569e3 100755
--- a/projects/determineversion.vbs
+++ b/projects/determineversion.vbs
@@ -177,6 +177,9 @@ Function DetermineSVNVersion()
' 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