summaryrefslogtreecommitdiff
path: root/projects
diff options
context:
space:
mode:
authormichi_cc <michi_cc@openttd.org>2011-05-07 15:13:52 +0000
committermichi_cc <michi_cc@openttd.org>2011-05-07 15:13:52 +0000
commit28067c21d5cc155f72c85374f8463bf8ceb1f0a0 (patch)
tree760377805d9c30946a9b54905508801790b56478 /projects
parent6cbc7be92bd90e80baf9cd4715319cf4ac7dfe7d (diff)
downloadopenttd-28067c21d5cc155f72c85374f8463bf8ceb1f0a0.tar.xz
(svn r22435) -Fix: Git revision detection would return too much when tags are involved.
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 8a991b40e..e16da751d 100755
--- a/projects/determineversion.vbs
+++ b/projects/determineversion.vbs
@@ -227,6 +227,9 @@ Function DetermineSVNVersion()
Loop
If oExec.ExitCode = 0 Then
version = oExec.StdOut.ReadLine()
+ If Right(version, 2) = "^0" Then
+ version = Left(version, Len(version) - 2)
+ End If
branch = ""
End If ' oExec.ExitCode = 0
End If ' Err.Number = 0