From 0d3da824f0699bde1159c19deaafa78e0b83412e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Remko=20Tron=C3=A7on?= Date: Sat, 29 May 2010 09:15:58 +0200 Subject: Strip off project name from tagged git build version. diff --git a/BuildTools/SCons/Version.py b/BuildTools/SCons/Version.py index f4affd4..0ff1531 100644 --- a/BuildTools/SCons/Version.py +++ b/BuildTools/SCons/Version.py @@ -8,7 +8,7 @@ def getGitBuildVersion(project) : for tag in tags.split("\n") : tagVersion = git("rev-parse " + tag + "^{commit}") if tagVersion == headVersion : - return tag + return tag[len(project)+1:] return None def git(cmd) : -- cgit v0.10.2-6-g49f6