From 47e990cb1a3e47f47681a669597ef320afb3b7e1 Mon Sep 17 00:00:00 2001 From: Will Holland Date: Thu, 1 Oct 2015 01:22:32 +0100 Subject: Workaround for refs/heads --- source/bottlerock.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/bottlerock.py b/source/bottlerock.py index 2690d05..f895b4d 100644 --- a/source/bottlerock.py +++ b/source/bottlerock.py @@ -87,7 +87,7 @@ def repo_update(): # if baseref changes then trigger firehose properties = {'repo_name':repo_name,'ref':ref} return sendchange('repo_update',properties) - elif ref in candidate_refs: + elif ref in candidate_refs or ref.replace('refs/heads/','') in candidate_refs: # if a candidate ref changes then trigger that pipeline pipeline = configure.pipeline_from_candidate_ref(ref) properties = {"ref":ref,"sha":sha} -- cgit v1.2.1