scm: Stop decoding output of post-clone command

There is no guarantee that it will print any text. We don't even need
the output, we just print it to error log if there is a problem.

Fixes: https://pagure.io/pungi/issue/847
Signed-off-by: Lubomír Sedlář <lsedlar@redhat.com>
This commit is contained in:
Lubomír Sedlář 2018-02-20 12:16:02 +01:00
parent e557dfd61a
commit a49704b2b8
1 changed files with 2 additions and 3 deletions

View File

@ -44,10 +44,9 @@ class ScmBase(kobo.log.LoggingBase):
def run_process_command(self, cwd):
if self.command:
self.log_debug('Running "%s"' % self.command)
retcode, output = run(self.command, workdir=cwd, can_fail=True,
universal_newlines=True)
retcode, output = run(self.command, workdir=cwd, can_fail=True)
if retcode != 0:
self.log_error('Output was: "%s"' % output)
self.log_error('Output was: %r' % output)
raise RuntimeError('%r failed with exit code %s'
% (self.command, retcode))