Buildbot: Fix for branch detection from the file name

This commit is contained in:
Sergey Sharybin 2014-10-15 16:06:48 +06:00
parent de54b031c6
commit 84eeff0348
1 changed files with 3 additions and 3 deletions

View File

@ -71,14 +71,14 @@ def get_branch(filename):
branch = ""
for token in tokens:
if token == "blender":
return branch
if branch == "":
branch = token
else:
branch = branch + "-" + token
if token == "blender":
return branch
return ""
# get filename