From 7cce50744308e4022f36659e30885920cf5d860a Mon Sep 17 00:00:00 2001 From: rubidium Date: Sat, 25 Dec 2010 08:22:55 +0000 Subject: (svn r21630) -Fix (r20308, r21615): version detection of subversion branches and tags got broken --- projects/determineversion.vbs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'projects') 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 -- cgit v1.2.3-54-g00ecf