From 0e86fc80caa315189e76a2cc40aa0a51c2479131 Mon Sep 17 00:00:00 2001 From: Joseph Schorr Date: Wed, 13 May 2015 13:55:44 -0400 Subject: [PATCH] Fix bitbucket trigger to use the specified branch name before the default branch --- endpoints/trigger.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/endpoints/trigger.py b/endpoints/trigger.py index 45b286203..1a07a357a 100644 --- a/endpoints/trigger.py +++ b/endpoints/trigger.py @@ -526,7 +526,7 @@ class BitbucketBuildTrigger(BuildTriggerHandler): branch_name = run_parameters.get('branch_name') (result, data, _) = repository.get_main_branch() if result: - branch_name = data['name'] or branch_name + branch_name = branch_name or data['name'] # Lookup the commit SHA for the branch. (result, data, _) = repository.get_branches()