diff --git a/roles/git/hooks/files/post-receive-alternativearch b/roles/git/hooks/files/post-receive-alternativearch index 16d8cef4dd..7bc4a9a6a0 100755 --- a/roles/git/hooks/files/post-receive-alternativearch +++ b/roles/git/hooks/files/post-receive-alternativearch @@ -66,7 +66,7 @@ def read_output(cmd, abspath, input=None, keepends=False, **kw): print(err) if not keepends: out = out.rstrip('\n\r') - return out + return out.decode('utf-8') def read_git_output(args, abspath, input=None, keepends=False, **kw): @@ -164,7 +164,7 @@ def run_as_post_receive_hook(): if DEBUG: print('List of commits:', new_commits_list) - full_change = '' + full_change = u'' exclude_arch = {} for commit in new_commits_list: if DEBUG: