Buildbot: Fix for branch detection from the file name
This commit is contained in:
parent
de54b031c6
commit
84eeff0348
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue