mirror of
https://pagure.io/fedora-infra/ansible.git
synced 2026-03-20 03:57:02 +08:00
git/hooks: decode the output of the subprocess
Signed-off-by: Pierre-Yves Chibon <pingou@pingoured.fr>
This commit is contained in:
@@ -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()
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user