diff options
| author | Pierre-Yves Chibon <pingou@pingoured.fr> | 2016-11-01 10:58:26 +0100 |
|---|---|---|
| committer | Pierre-Yves Chibon <pingou@pingoured.fr> | 2016-11-01 10:58:44 +0100 |
| commit | 7d3112e4405fc14a9590ac8ca3b96efdbcdae44e (patch) | |
| tree | 5212763f0a608597e7be14b43bf47dfc904a0c48 /roles/git | |
| parent | 54b2e3303aa4060440a29830715ae48ba79356c9 (diff) | |
| download | ansible-7d3112e4405fc14a9590ac8ca3b96efdbcdae44e.tar.gz ansible-7d3112e4405fc14a9590ac8ca3b96efdbcdae44e.tar.xz ansible-7d3112e4405fc14a9590ac8ca3b96efdbcdae44e.zip | |
Correctly store the diffs
Diffstat (limited to 'roles/git')
| -rwxr-xr-x | roles/git/hooks/files/post-receive-alternativearch | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/roles/git/hooks/files/post-receive-alternativearch b/roles/git/hooks/files/post-receive-alternativearch index faa39b260..0f5220dbc 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) |
