git: show stderr only if it happen for calling GIT commands
This commit is contained in:
parent
4289b53c04
commit
9effdf9ee6
1 changed files with 2 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue