aboutsummaryrefslogtreecommitdiffstats
path: root/deployment/mgagit/templates/git-post-receive-hook
diff options
context:
space:
mode:
Diffstat (limited to 'deployment/mgagit/templates/git-post-receive-hook')
-rwxr-xr-xdeployment/mgagit/templates/git-post-receive-hook11
1 files changed, 5 insertions, 6 deletions
diff --git a/deployment/mgagit/templates/git-post-receive-hook b/deployment/mgagit/templates/git-post-receive-hook
index 5cdc37f3..71235254 100755
--- a/deployment/mgagit/templates/git-post-receive-hook
+++ b/deployment/mgagit/templates/git-post-receive-hook
@@ -155,13 +155,12 @@ class LinksRevision(git_multimail.Revision):
if m:
commit = m.group(1);
for tracker in BUG_REFS.keys():
- m = BUG_REFS[tracker]['re'].search(line)
- if m:
- bug = m.group(1)
+ foundbugs = BUG_REFS[tracker]['re'].findall(line)
+ if len(foundbugs):
if not tracker in bugs:
- bugs[tracker] = [bug]
- elif not bug in bugs[tracker]:
- bugs[tracker].append(bug)
+ bugs[tracker] = foundbugs
+ else:
+ bugs[tracker] = list(set(bugs[tracker] + foundbugs))
return output