##// END OF EJS Templates
Remove GIT_DIT from environ on calling git_command, it can break a lot of stuff
marcink -
r2616:bab7eaa2 beta
parent child Browse files
Show More
@@ -96,6 +96,9 b' class GitRepository(BaseRepository):'
96 _str_cmd = True
96 _str_cmd = True
97
97
98 gitenv = os.environ
98 gitenv = os.environ
99 # need to clean fix GIT_DIR !
100 if 'GIT_DIR' in gitenv:
101 del gitenv['GIT_DIR']
99 gitenv['GIT_CONFIG_NOGLOBAL'] = '1'
102 gitenv['GIT_CONFIG_NOGLOBAL'] = '1'
100
103
101 cmd = ['git'] + _copts + cmd
104 cmd = ['git'] + _copts + cmd
General Comments 0
You need to be logged in to leave comments. Login now