diff options
Diffstat (limited to 'zuul/model.py')
-rw-r--r-- | zuul/model.py | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/zuul/model.py b/zuul/model.py index 100785885..9d219dcfe 100644 --- a/zuul/model.py +++ b/zuul/model.py @@ -3160,10 +3160,9 @@ class Job(ConfigObject): branch_change = change else: # If an override branch is supplied, create a very basic - # change (a Ref) and set its branch to the override - # branch. - branch_change = Ref(change.project) - branch_change.ref = override_branch + # change and set its branch to the override branch. + branch_change = Branch(change.project) + branch_change.branch = override_branch if self.branch_matcher and not self.branch_matcher.matches( branch_change): |