git/hooks: decode the output of the subprocess

Signed-off-by: Pierre-Yves Chibon <pingou@pingoured.fr>
This commit is contained in:
Pierre-Yves Chibon 2021-01-25 10:54:51 +01:00
parent 9b93ce1537
commit bd6180dcd0

View file

@ -42,7 +42,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()