Fix handling of multi-part branches in the build triggers

Fixes #1360
This commit is contained in:
Joseph Schorr 2016-07-26 13:41:13 -07:00
parent 9d48bcd0f1
commit 06d52f2c83
7 changed files with 232 additions and 21 deletions

View file

@ -98,7 +98,7 @@ class PreparedBuild(object):
return sha[0:7]
def tags_from_ref(self, ref, default_branch=None):
branch = ref.split('/')[-1]
branch = ref.split('/', 2)[-1]
tags = {branch}
if branch == default_branch: