decode Popen.communicate result under py3

Fixes: https://pagure.io/koji/issue/1270
This commit is contained in:
Tomas Kopecek 2019-02-20 11:00:56 +01:00 committed by Mike McLean
parent ef3ba7d9dc
commit 86f3c5b095

View file

@ -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