From 14c98218845ad2acbd42b8d913503ff6fb3fd2ac Mon Sep 17 00:00:00 2001 From: Sam Vilain Date: Tue, 4 Dec 2007 10:48:54 +1300 Subject: Add remote..proxy As well as allowing a default http.proxy option, allow it to be set per-remote. Signed-off-by: Sam Vilain Signed-off-by: Junio C Hamano --- remote.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'remote.c') diff --git a/remote.c b/remote.c index bb01059083..46e5f04243 100644 --- a/remote.c +++ b/remote.c @@ -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; } -- cgit v1.2.1