mirror of
https://gerrit.googlesource.com/git-repo
synced 2024-12-21 07:16:21 +00:00
Single quote http.proxy in GIT_CONFIG_PARAMETERS
Git requires the values in this environment variable to be single quoted. repo must wrap the expression into '' before adding it to the environment. Change-Id: I20a1fb8772f9aa6e9fd5a0516c981c2ca020ef05
This commit is contained in:
parent
7cf1b36bcd
commit
337aee0a9c
@ -148,7 +148,7 @@ class GitCommand(object):
|
|||||||
_setenv(env, 'REPO_SSH_SOCK', ssh_sock())
|
_setenv(env, 'REPO_SSH_SOCK', ssh_sock())
|
||||||
_setenv(env, 'GIT_SSH', _ssh_proxy())
|
_setenv(env, 'GIT_SSH', _ssh_proxy())
|
||||||
if 'http_proxy' in env and 'darwin' == sys.platform:
|
if 'http_proxy' in env and 'darwin' == sys.platform:
|
||||||
s = 'http.proxy=' + env['http_proxy']
|
s = "'http.proxy=%s'" % (env['http_proxy'],)
|
||||||
p = env.get('GIT_CONFIG_PARAMETERS')
|
p = env.get('GIT_CONFIG_PARAMETERS')
|
||||||
if p is not None:
|
if p is not None:
|
||||||
s = p + ' ' + s
|
s = p + ' ' + s
|
||||||
|
Loading…
Reference in New Issue
Block a user