diff options
author | Sam Vilain <sam.vilain@catalyst.net.nz> | 2007-12-04 10:48:54 +1300 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2007-12-03 23:43:07 -0800 |
commit | 14c98218845ad2acbd42b8d913503ff6fb3fd2ac (patch) | |
tree | 80727a8ed62317aa7602f5cbcc117e7d3a3de211 /remote.c | |
parent | 9c5665aa3c938b0e085ca34a8126110edcffa217 (diff) | |
download | git-14c98218845ad2acbd42b8d913503ff6fb3fd2ac.tar.gz git-14c98218845ad2acbd42b8d913503ff6fb3fd2ac.tar.xz |
Add remote.<name>.proxy
As well as allowing a default http.proxy option, allow it to be set
per-remote.
Signed-off-by: Sam Vilain <sam.vilain@catalyst.net.nz>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'remote.c')
-rw-r--r-- | remote.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -278,6 +278,8 @@ static int handle_config(const char *key, const char *value) } else if (!strcmp(subkey, ".tagopt")) { if (!strcmp(value, "--no-tags")) remote->fetch_tags = -1; + } else if (!strcmp(subkey, ".proxy")) { + remote->http_proxy = xstrdup(value); } return 0; } |