##// END OF EJS Templates
git: add option to skip stderr logging.
marcink -
r2782:a66598ad default
parent child Browse files
Show More
@@ -103,8 +103,9 b' class GitRepository(BaseRepository):'
103 if not isinstance(cmd, list):
103 if not isinstance(cmd, list):
104 raise ValueError('cmd must be a list, got %s instead' % type(cmd))
104 raise ValueError('cmd must be a list, got %s instead' % type(cmd))
105
105
106 skip_stderr_log = opts.pop('skip_stderr_log', False)
106 out, err = self._remote.run_git_command(cmd, **opts)
107 out, err = self._remote.run_git_command(cmd, **opts)
107 if err:
108 if err and not skip_stderr_log:
108 log.debug('Stderr output of git command "%s":\n%s', cmd, err)
109 log.debug('Stderr output of git command "%s":\n%s', cmd, err)
109 return out, err
110 return out, err
110
111
General Comments 0
You need to be logged in to leave comments. Login now