From 7d3112e4405fc14a9590ac8ca3b96efdbcdae44e Mon Sep 17 00:00:00 2001 From: Pierre-Yves Chibon Date: Tue, 1 Nov 2016 10:58:26 +0100 Subject: [PATCH] Correctly store the diffs --- roles/git/hooks/files/post-receive-alternativearch | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/roles/git/hooks/files/post-receive-alternativearch b/roles/git/hooks/files/post-receive-alternativearch index faa39b260a..0f5220dbcf 100755 --- a/roles/git/hooks/files/post-receive-alternativearch +++ b/roles/git/hooks/files/post-receive-alternativearch @@ -158,7 +158,7 @@ def run_as_post_receive_hook(): if DEBUG: print('List of commits:', new_commits_list) - exclude_arch = [] + exclude_arch = {} for commit in new_commits_list: if DEBUG: print('Diff of commit:', commit) @@ -166,7 +166,7 @@ def run_as_post_receive_hook(): if DEBUG: print(line) if line.strip().startswith(PATTERNS): - exclude_arch.append({commit: line.strip()}) + exclude_arch[commit] = line.strip() if DEBUG: print('Commit %s selected' % commit)