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:
Pierre-Yves Chibon 2020-09-10 21:33:27 +02:00
parent 89f17eafeb
commit 3a7fa049d9
2 changed files with 1 additions and 2 deletions

View file

@ -20,7 +20,6 @@
- sudo
- collectd/base
- role: git/hooks
when: datacenter != 'iad2'
- role: cgit/base
when: datacenter != 'iad2'
- role: cgit/clean_lock_cron

View file

@ -51,7 +51,7 @@ def revs_between(head, base):
if proc.returncode != 0:
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()