* [PATCH 1/4] Add uploadpack configuration info to remote.
@ 2007-07-12 1:37 Daniel Barkalow
0 siblings, 0 replies; only message in thread
From: Daniel Barkalow @ 2007-07-12 1:37 UTC (permalink / raw)
To: Junio C Hamano; +Cc: git
Read remote.<name>.uploadpack, just like receivepack.
Signed-off-by: Daniel Barkalow <barkalow@iabervon.org>
---
remote.c | 5 +++++
remote.h | 1 +
2 files changed, 6 insertions(+), 0 deletions(-)
diff --git a/remote.c b/remote.c
index 500ca4d..793681a 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 01dbcef..f50105c 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);
--
1.5.2.2.1600.ga4e5
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2007-07-12 1:37 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-07-12 1:37 [PATCH 1/4] Add uploadpack configuration info to remote Daniel Barkalow
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).