Skip to content

Commit

Permalink
Add uploadpack configuration info to remote.
Browse files Browse the repository at this point in the history
Signed-off-by: Daniel Barkalow <barkalow@iabervon.org>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
  • Loading branch information
Daniel Barkalow authored and Junio C Hamano committed Sep 19, 2007
1 parent 30ae764 commit 0012ba2
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
5 changes: 5 additions & 0 deletions remote.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down
1 change: 1 addition & 0 deletions remote.h
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ struct remote {
int fetch_refspec_nr;

const char *receivepack;
const char *uploadpack;
};

struct remote *remote_get(const char *name);
Expand Down

0 comments on commit 0012ba2

Please sign in to comment.