git: show stderr only if it happen for calling GIT commands

This commit is contained in:
Marcin Kuzminski 2017-01-10 10:42:46 +01:00
parent 4289b53c04
commit 9effdf9ee6

View file

@ -107,7 +107,8 @@ class GitRepository(BaseRepository):
raise ValueError('cmd must be a list, got %s instead' % type(cmd))
out, err = self._remote.run_git_command(cmd, **opts)
log.debug('Stderr output of git command "%s":\n%s', cmd, err)
if err:
log.debug('Stderr output of git command "%s":\n%s', cmd, err)
return out, err
@staticmethod