Commits

Marcin Kuzminski committed d7a4c7e

fixed git-command wrapper

  • Participants
  • Parent commits 31ebf70

Comments (0)

Files changed (1)

File rhodecode/lib/vcs/backends/git/repository.py

         """
 
         _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),