diff --git a/bert_e/workflow/gitwaterflow/branches.py b/bert_e/workflow/gitwaterflow/branches.py index 50ca1814..0d40ee73 100644 --- a/bert_e/workflow/gitwaterflow/branches.py +++ b/bert_e/workflow/gitwaterflow/branches.py @@ -862,7 +862,7 @@ def __init__(self): def build(self, repo, dst_branch=None): flat_branches = set() for prefix in ['development', 'hotfix']: - cmd = 'git branch -a --list *%s/*' % prefix + cmd = "git branch -a --list '*%s/*'" % prefix for branch in repo.cmd(cmd).split('\n')[:-1]: match_ = re.match(r'\*?\s*(remotes/origin/)?(?P.*)', branch)