git: add option to skip stderr logging.
This commit is contained in:
parent
88537dc3fa
commit
ce7620668d
1 changed files with 2 additions and 1 deletions
|
|
@ -103,8 +103,9 @@ class GitRepository(BaseRepository):
|
|||
if not isinstance(cmd, list):
|
||||
raise ValueError('cmd must be a list, got %s instead' % type(cmd))
|
||||
|
||||
skip_stderr_log = opts.pop('skip_stderr_log', False)
|
||||
out, err = self._remote.run_git_command(cmd, **opts)
|
||||
if err:
|
||||
if err and not skip_stderr_log:
|
||||
log.debug('Stderr output of git command "%s":\n%s', cmd, err)
|
||||
return out, err
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue