{"thread":{"id":"8993","subject":"[PATCH 1/4] Add uploadpack configuration info to remote.","startedAt":"2007-07-12T01:37:01Z","lastAt":"2007-07-12T01:37:01Z","messageCount":1,"participants":["Daniel Barkalow"],"isPatch":true,"patchVersion":1,"patchTotal":4},"messages":[{"id":"47101","messageId":"Pine.LNX.4.64.0707112107180.6977@iabervon.org","threadId":"8993","inReplyTo":null,"subject":"[PATCH 1/4] Add uploadpack configuration info to remote.","fromName":"Daniel Barkalow","fromEmail":"barkalow@iabervon.org","sentAt":"2007-07-12T01:37:01Z","receivedAt":"2007-07-12T01:37:01Z","isPatch":true,"sender":{"key":"barkalow@iabervon.org","avatar":"https://avatars.githubusercontent.com/u/55364219?v=4"},"body":"Read remote.<name>.uploadpack, just like receivepack.\n\nSigned-off-by: Daniel Barkalow <barkalow@iabervon.org>\n---\n remote.c |    5 +++++\n remote.h |    1 +\n 2 files changed, 6 insertions(+), 0 deletions(-)\n\ndiff --git a/remote.c b/remote.c\nindex 500ca4d..793681a 100644\n--- a/remote.c\n+++ b/remote.c\n@@ -196,6 +196,11 @@ static int handle_config(const char *key, const char *value)\n \t\t\tremote->receivepack = xstrdup(value);\n \t\telse\n \t\t\terror(\"more than one receivepack given, using the first\");\n+\t} else if (!strcmp(subkey, \".uploadpack\")) {\n+\t\tif (!remote->uploadpack)\n+\t\t\tremote->uploadpack = xstrdup(value);\n+\t\telse\n+\t\t\terror(\"more than one uploadpack given, using the first\");\n \t}\n \treturn 0;\n }\ndiff --git a/remote.h b/remote.h\nindex 01dbcef..f50105c 100644\n--- a/remote.h\n+++ b/remote.h\n@@ -16,6 +16,7 @@ struct remote {\n \tint fetch_refspec_nr;\n \n \tconst char *receivepack;\n+\tconst char *uploadpack;\n };\n \n struct remote *remote_get(const char *name);\n-- \n1.5.2.2.1600.ga4e5\n"}]}