Last part of branch name only please

This commit is contained in:
Christian 2012-12-03 08:30:44 -05:00
parent 461173a778
commit 329fe50b1d
1 changed files with 1 additions and 1 deletions

View File

@ -56,7 +56,7 @@ def main():
print("Git not found")
branch="none"
else:
branch=os.getenv("GIT_BRANCH")
branch=os.getenv("GIT_BRANCH").rpartition('/')[2]
with open("fmlversion.properties","w") as f:
f.write("%s=%s\n" %("fmlbuild.major.number",major))