# HG changeset patch # User Marcin Kuzminski # Date 2012-04-17 21:50:32 # Node ID d7a4c7e3528e01974d04fe766813177cf60e63ed # Parent 31ebf7010566489f7897983d4b738e1be2a2c98b fixed git-command wrapper 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 @@ -80,12 +80,14 @@ class GitRepository(BaseRepository): """ _copts = ['-c', 'core.quotepath=false', ] - + _str_cmd = False if isinstance(cmd, basestring): cmd = [cmd] + _str_cmd = True cmd = ['GIT_CONFIG_NOGLOBAL=1', 'git'] + _copts + cmd - + if _str_cmd: + cmd = ' '.join(cmd) try: opts = dict( shell=isinstance(cmd, basestring),