##// END OF EJS Templates
Extend GIT command wrapper with GIT_CONFIG_NOGLOBAL=1 to bypass gitconfig global
marcink -
r2183:9d274812 beta
parent child Browse files
Show More
@@ -78,11 +78,12 b' class GitRepository(BaseRepository):'
78
78
79 :param cmd: git command to be executed
79 :param cmd: git command to be executed
80 """
80 """
81
81 #cmd = '(cd %s && git %s)' % (self.path, cmd)
82 #cmd = '(cd %s && git %s)' % (self.path, cmd)
82 if isinstance(cmd, basestring):
83 if isinstance(cmd, basestring):
83 cmd = 'git %s' % cmd
84 cmd = 'GIT_CONFIG_NOGLOBAL=1 git %s' % cmd
84 else:
85 else:
85 cmd = ['git'] + cmd
86 cmd = ['GIT_CONFIG_NOGLOBAL=1', 'git'] + cmd
86 try:
87 try:
87 opts = dict(
88 opts = dict(
88 shell=isinstance(cmd, basestring),
89 shell=isinstance(cmd, basestring),
General Comments 0
You need to be logged in to leave comments. Login now