Use a strbuf for copying the command line for the reflog.
[gitweb.git] / remote.c
index bb010590837fd6ea188e64c5263bb1fe12ab93f4..46e5f04243eb6075a91ac70350555d1aa521f802 100644 (file)
--- 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;
 }