summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2010-12-25 08:22:55 +0000
committerrubidium <rubidium@openttd.org>2010-12-25 08:22:55 +0000
commit7cce50744308e4022f36659e30885920cf5d860a (patch)
tree43a4937a7522f2b3446dfadb8c7168209a26736c
parent2ebd4c62bcaad03c7c9a2abbea54074a850bf7e4 (diff)
downloadopenttd-7cce50744308e4022f36659e30885920cf5d860a.tar.xz
(svn r21630) -Fix (r20308, r21615): version detection of subversion branches and tags got broken
-rwxr-xr-xprojects/determineversion.vbs6
1 files changed, 4 insertions, 2 deletions
diff --git a/projects/determineversion.vbs b/projects/determineversion.vbs
index 3b5b63d66..7fd9f3610 100755
--- a/projects/determineversion.vbs
+++ b/projects/determineversion.vbs
@@ -157,8 +157,10 @@ Function DetermineSVNVersion()
If version <> "norev000" Then
If InStr(url, "branches") Then
- url = Mid(url, InStr(url, "branches/") + 9)
- branch = Mid(url, 1, InStr(2, url, "/") - 1)
+ branch = Mid(url, InStr(url, "branches/") + 9)
+ End If
+ If InStr(url, "tags") Then
+ version = Mid(url, InStr(url, "tags/") + 5)
End If
Else ' version <> "norev000"
' svn detection failed, reset error and try git