From 069f4515abd01c19bb4ab577ce0ffaa796b22b6a Mon Sep 17 00:00:00 2001 From: matthiasL-scality Date: Wed, 14 Jan 2026 15:27:38 +0100 Subject: [PATCH] (PTFE-2894) Add quote between git command --- bert_e/workflow/gitwaterflow/branches.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)