Changeset - d7a4c7e3528e
[Not reviewed]
beta
0 1 0
Marcin Kuzminski - 14 years ago 2012-04-17 23:50:32
marcin@python-works.com
fixed git-command wrapper
1 file changed with 4 insertions and 2 deletions:
0 comments (0 inline, 0 general)
rhodecode/lib/vcs/backends/git/repository.py
Show inline comments
 
@@ -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),
0 comments (0 inline, 0 general)