summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRemko Tronçon <git@el-tramo.be>2010-05-29 07:15:58 (GMT)
committerRemko Tronçon <git@el-tramo.be>2010-05-29 07:15:58 (GMT)
commit0d3da824f0699bde1159c19deaafa78e0b83412e (patch)
treecfaf2e4777196fa0b14e73a8af9e7866fb44a072 /BuildTools
parentd2566f789a81d683d62b4ed90f399a56dd059bba (diff)
downloadswift-0d3da824f0699bde1159c19deaafa78e0b83412e.zip
swift-0d3da824f0699bde1159c19deaafa78e0b83412e.tar.bz2
Strip off project name from tagged git build version.
Diffstat (limited to 'BuildTools')
-rw-r--r--BuildTools/SCons/Version.py2
1 files changed, 1 insertions, 1 deletions
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) :