1
0
Fork 0
mirror of https://github.com/git/git.git synced 2024-05-06 11:06:10 +02:00

Add uploadpack configuration info to remote.

Signed-off-by: Daniel Barkalow <barkalow@iabervon.org>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:
Daniel Barkalow 2007-09-10 23:02:51 -04:00 committed by Junio C Hamano
parent 30ae764b1e
commit 0012ba2108
2 changed files with 6 additions and 0 deletions

View File

@ -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;
}

View File

@ -16,6 +16,7 @@ struct remote {
int fetch_refspec_nr;
const char *receivepack;
const char *uploadpack;
};
struct remote *remote_get(const char *name);