Skip to content

Commit

Permalink
Pass -q to ssh by default
Browse files Browse the repository at this point in the history
  • Loading branch information
vmalloc committed Sep 20, 2010
1 parent 59fcb81 commit cb447a2
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions git/repository.py
Expand Up @@ -64,13 +64,19 @@ def _executeGitCommand(self, command, cwd=None):
cwd = self._getWorkingDirectory()
command = str(command)
self._logGitCommand(command, cwd)
environment = self._getEnvironment()
returned = subprocess.Popen(command,
shell=True,
cwd=cwd,
env=environment,
stdout=subprocess.PIPE,
stderr=subprocess.PIPE)
returned.wait()
return returned
def _getEnvironment(self):
if 'GIT_SSH' not in os.environ:
return dict(GIT_SSH='ssh -q')
return None
def _executeGitCommandAssertSuccess(self, command, **kwargs):
returned = self._executeGitCommand(command, **kwargs)
assert returned.returncode is not None
Expand Down

0 comments on commit cb447a2

Please sign in to comment.