summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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