decode Popen.communicate result under py3
Fixes: https://pagure.io/koji/issue/1270
This commit is contained in:
parent
ef3ba7d9dc
commit
86f3c5b095
1 changed files with 2 additions and 0 deletions
|
|
@ -534,6 +534,8 @@ class SCM(object):
|
|||
if status != 0:
|
||||
raise koji.GenericError('Error getting commit hash for git')
|
||||
fragment = out.strip()
|
||||
if six.PY3:
|
||||
fragment = fragment.decode()
|
||||
scheme = self.scheme[:-3]
|
||||
netloc = self.host
|
||||
path = self.repository
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue