batcave: Fix the two git hooks run in the ansible git repo in the batcave
Signed-off-by: Pierre-Yves Chibon <pingou@pingoured.fr>
This commit is contained in:
parent
89f17eafeb
commit
3a7fa049d9
2 changed files with 1 additions and 2 deletions
|
@ -20,7 +20,6 @@
|
||||||
- sudo
|
- sudo
|
||||||
- collectd/base
|
- collectd/base
|
||||||
- role: git/hooks
|
- role: git/hooks
|
||||||
when: datacenter != 'iad2'
|
|
||||||
- role: cgit/base
|
- role: cgit/base
|
||||||
when: datacenter != 'iad2'
|
when: datacenter != 'iad2'
|
||||||
- role: cgit/clean_lock_cron
|
- role: cgit/clean_lock_cron
|
||||||
|
|
|
@ -51,7 +51,7 @@ def revs_between(head, base):
|
||||||
if proc.returncode != 0:
|
if proc.returncode != 0:
|
||||||
raise IOError('git rev-list failed: %r, err: %r' % (stdout, stderr))
|
raise IOError('git rev-list failed: %r, err: %r' % (stdout, stderr))
|
||||||
|
|
||||||
for line in stdout.strip().split('\n'):
|
for line in stdout.decode('utf-8').strip().split('\n'):
|
||||||
yield line.strip()
|
yield line.strip()
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue