# HG changeset patch # User Marcin Kuzminski # Date 2017-01-10 09:42:46 # Node ID c0dab9ada1f7aa3cb09114a0b45209cf6530634d # Parent e8c231d6e7339601ed28019ba3a1efed6cd53a6f git: show stderr only if it happen for calling GIT commands diff --git a/rhodecode/lib/vcs/backends/git/repository.py b/rhodecode/lib/vcs/backends/git/repository.py --- a/rhodecode/lib/vcs/backends/git/repository.py +++ b/rhodecode/lib/vcs/backends/git/repository.py @@ -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