Correctly store the diffs

This commit is contained in:
Pierre-Yves Chibon 2016-11-01 10:58:26 +01:00
parent 54b2e3303a
commit 7d3112e440

View file

@ -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)