1
0
mirror of https://github.com/OpenTTD/OpenTTD.git synced 2025-08-19 04:29:09 +00:00

(svn r19895) -Fix [FS#3836]: Git version detection would sometimes mistakenly identify a checkout as modified.

This commit is contained in:
michi_cc
2010-05-26 03:31:05 +00:00
parent 0599e8e97d
commit 3e7fc229ab
2 changed files with 10 additions and 0 deletions

View File

@@ -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 ...