summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLibravatar Daniel Barkalow <barkalow@iabervon.org>2007-09-10 23:02:51 -0400
committerLibravatar Junio C Hamano <gitster@pobox.com>2007-09-19 03:22:30 -0700
commit0012ba2108aa42947dedf19f3db2de73a67cc4f5 (patch)
tree1fab21bbd724c80da0e7da3ca624e287a0e916ea
parentModularize commit-walker (diff)
downloadtgif-0012ba2108aa42947dedf19f3db2de73a67cc4f5.tar.xz
Add uploadpack configuration info to remote.
Signed-off-by: Daniel Barkalow <barkalow@iabervon.org> Signed-off-by: Junio C Hamano <gitster@pobox.com>
-rw-r--r--remote.c5
-rw-r--r--remote.h1
2 files changed, 6 insertions, 0 deletions
diff --git a/remote.c b/remote.c
index bb774d0bcc..a8196b1b5d 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 17b8b5b5d5..72c9153783 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);