diff options
author | rubidium <rubidium@openttd.org> | 2010-12-25 08:22:55 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2010-12-25 08:22:55 +0000 |
commit | 7cce50744308e4022f36659e30885920cf5d860a (patch) | |
tree | 43a4937a7522f2b3446dfadb8c7168209a26736c | |
parent | 2ebd4c62bcaad03c7c9a2abbea54074a850bf7e4 (diff) | |
download | openttd-7cce50744308e4022f36659e30885920cf5d860a.tar.xz |
(svn r21630) -Fix (r20308, r21615): version detection of subversion branches and tags got broken
-rwxr-xr-x | projects/determineversion.vbs | 6 |
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 |