提交 0012ba21 编写于 作者: D Daniel Barkalow 提交者: Junio C Hamano

Add uploadpack configuration info to remote.

Signed-off-by: NDaniel Barkalow <barkalow@iabervon.org>
Signed-off-by: NJunio C Hamano <gitster@pobox.com>
上级 30ae764b
......@@ -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;
}
......
......@@ -16,6 +16,7 @@ struct remote {
int fetch_refspec_nr;
const char *receivepack;
const char *uploadpack;
};
struct remote *remote_get(const char *name);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册