chiark
/
gitweb
/
~mdw
/
stgit
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
(from parent 1:
ef8871f
)
Merge commit 'kha/safe'
author
Catalin Marinas
<catalin.marinas@arm.com>
Tue, 8 Sep 2009 20:41:19 +0000
(21:41 +0100)
committer
Catalin Marinas
<catalin.marinas@arm.com>
Tue, 8 Sep 2009 20:41:19 +0000
(21:41 +0100)
stgit/commands/repair.py
patch
|
blob
|
blame
|
history
diff --git
a/stgit/commands/repair.py
b/stgit/commands/repair.py
index 37c4bab1d0cbd350deb919f73ca6b9b7f3c89eba..5804a12f8b9ea60145caae05278ecdd33b104865 100644
(file)
--- 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)