1
0
mirror of https://github.com/OpenTTD/OpenTTD.git synced 2025-08-15 18:49:10 +00:00

(svn r21630) -Fix (r20308, r21615): version detection of subversion branches and tags got broken

This commit is contained in:
rubidium
2010-12-25 08:22:55 +00:00
parent 2ebd4c62bc
commit 7cce507443

View File

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