Changeset - bab7eaa2cd7d
[Not reviewed]
beta
0 1 0
Marcin Kuzminski - 13 years ago 2012-07-16 02:24:10
marcin@python-works.com
Remove GIT_DIT from environ on calling git_command, it can break a lot of stuff
1 file changed with 3 insertions and 0 deletions:
0 comments (0 inline, 0 general)
rhodecode/lib/vcs/backends/git/repository.py
Show inline comments
 
@@ -96,6 +96,9 @@ class GitRepository(BaseRepository):
 
            _str_cmd = True
 

	
 
        gitenv = os.environ
 
        # need to clean fix GIT_DIR !
 
        if 'GIT_DIR' in gitenv:
 
            del gitenv['GIT_DIR']
 
        gitenv['GIT_CONFIG_NOGLOBAL'] = '1'
 

	
 
        cmd = ['git'] + _copts + cmd
0 comments (0 inline, 0 general)