From: Daniel Barkalow Date: Tue, 11 Sep 2007 03:02:51 +0000 (-0400) Subject: Add uploadpack configuration info to remote. X-Git-Tag: v1.5.4-rc0~292^2~70 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=0012ba2108aa42947dedf19f3db2de73a67cc4f5;p=git.git Add uploadpack configuration info to remote. Signed-off-by: Daniel Barkalow Signed-off-by: Junio C Hamano --- diff --git a/remote.c b/remote.c index bb774d0bc..a8196b1b5 100644 --- a/remote.c +++ b/remote.c @@ -196,6 +196,11 @@ static int handle_config(const char *key, const char *value) remote->receivepack = xstrdup(value); else error("more than one receivepack given, using the first"); + } else if (!strcmp(subkey, ".uploadpack")) { + if (!remote->uploadpack) + remote->uploadpack = xstrdup(value); + else + error("more than one uploadpack given, using the first"); } return 0; } diff --git a/remote.h b/remote.h index 17b8b5b5d..72c915378 100644 --- a/remote.h +++ b/remote.h @@ -16,6 +16,7 @@ struct remote { int fetch_refspec_nr; const char *receivepack; + const char *uploadpack; }; struct remote *remote_get(const char *name);