diff options
author | Catalin Marinas <catalin.marinas@arm.com> | 2009-09-08 21:41:19 +0100 |
---|---|---|
committer | Catalin Marinas <catalin.marinas@arm.com> | 2009-09-08 21:41:19 +0100 |
commit | ba5cb156fc92a5dc6160cefa1d65fff46ff1b09f (patch) | |
tree | c5547b101949f93065096f124ee31ced0194ca64 | |
parent | ef8871fd6c5a8cc249d0f2cd51e0b8d57e125ed8 (diff) | |
parent | ce4c86fa8d57eb809e291fb87613951414de2b71 (diff) | |
download | stgit-ba5cb156fc92a5dc6160cefa1d65fff46ff1b09f.tar.gz |
Merge commit 'kha/safe'
-rw-r--r-- | stgit/commands/repair.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/stgit/commands/repair.py b/stgit/commands/repair.py index 37c4bab..5804a12 100644 --- a/stgit/commands/repair.py +++ b/stgit/commands/repair.py @@ -108,7 +108,7 @@ def read_commit_dag(branch): commits[id].children.add(commits[cs[0]]) for line in Run('git', 'show-ref').output_lines(): id, ref = line.split() - m = re.match(r'^refs/patches/%s/(.+)$' % branch, ref) + m = re.match(r'^refs/patches/%s/(.+)$' % re.escape(branch), ref) if m and not m.group(1).endswith('.log'): c = commits[id] c.patch = m.group(1) |