From e2db6b78be10c20bd7baacd91d581e1c33ea78ea Mon Sep 17 00:00:00 2001 From: Pierre-Yves Chibon Date: Jul 17 2014 09:45:57 +0000 Subject: Fix: we can not do .replace() on a list --- diff --git a/progit/hooks/files/progit_hook.py b/progit/hooks/files/progit_hook.py index 042f6cd..48ddc15 100644 --- a/progit/hooks/files/progit_hook.py +++ b/progit/hooks/files/progit_hook.py @@ -150,8 +150,11 @@ def fixes_commit(commitid, issueid, project=None): except progit.exceptions.ProgitException as err: print err - branches = read_git_lines( - ['branch', '--contains', commit], keepends=False).replace('* ', '') + branches = [ + item.replace('* ', '') for item in read_git_lines( + ['branch', '--contains', commitid], + keepends=False) + ] if 'master' in branches: try: