git/list[1] front-page[2] threads[3] people[4] search[5] about
 

[PATCH 1/4] Add uploadpack configuration info to remote.

From
Daniel Barkalow <barkalow@iabervon.org>
Date
Jul 12, 2007, 01:37 UTC
Message-ID
<Pine.LNX.4.64.0707112107180.6977@iabervon.org>
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
Message 1 of 1 in “Add uploadpack configuration info to remote.”
  1. 1/4 Add uploadpack configuration info to remote.Daniel Barkalow, Jul 12, 2007

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.