From 0891512f71b16da1c908eed42e35251d560d3199 Mon Sep 17 00:00:00 2001 From: Pierre-Yves Chibon Date: Jun 08 2014 14:09:20 +0000 Subject: Fix printing the groups matched by the regex --- diff --git a/progit/hooks/files/progit_hook.py b/progit/hooks/files/progit_hook.py index 4d07f41..109dc04 100644 --- a/progit/hooks/files/progit_hook.py +++ b/progit/hooks/files/progit_hook.py @@ -67,10 +67,10 @@ def generate_revision_change_log(new_commits_list): print '*', line for motif in FIXES: if motif.match(line): - print 'fixes', motif.groups() + print 'fixes', motif.match(line).groups() for motif in RELATES: if motif.match(line): - print 'relates to', motif.groups() + print 'relates to', motif.match(line).groups() def get_commits_id(fromrev, torev):