Mercurial > kallithea
changeset 2200:d7a4c7e3528e beta
fixed git-command wrapper
author | Marcin Kuzminski <marcin@python-works.com> |
---|---|
date | Tue, 17 Apr 2012 23:50:32 +0200 |
parents | 31ebf7010566 |
children | ea5ff843b200 |
files | rhodecode/lib/vcs/backends/git/repository.py |
diffstat | 1 files changed, 4 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/rhodecode/lib/vcs/backends/git/repository.py Tue Apr 17 23:00:36 2012 +0200 +++ b/rhodecode/lib/vcs/backends/git/repository.py Tue Apr 17 23:50:32 2012 +0200 @@ -80,12 +80,14 @@ """ _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),