Re: [PATCH] daemon: accept "git program" as well
- Date: Wed, 25 Jun 2008 19:02:28 -0400
- From: "Shawn O. Pearce" <spearce@xxxxxxxxxxx>
- Subject: Re: [PATCH] daemon: accept "git program" as well
Junio C Hamano <gitster@xxxxxxxxx> wrote:
> This is a step to futureproof git-daemon to accept clients that
> ask for "git upload-pack" and friends, instead of using the more
> traditional dash-form "git-upload-pack". By allowing both, it
> makes the client side easier to handle, as it makes "git" the only
> thing necessary to be on $PATH when invoking the remote command
> directly via ssh.
>
> Signed-off-by: Junio C Hamano <gitster@xxxxxxxxx>
Obviously correct. Ack. Thanks Junio.
> So this obviously needs to be queued to 'maint' to be included in 1.5.6.1
> and 1.6.0.
>
> daemon.c | 2 +-
> 1 files changed, 1 insertions(+), 1 deletions(-)
>
> diff --git a/daemon.c b/daemon.c
> index 63cd12c..621c567 100644
> --- a/daemon.c
> +++ b/daemon.c
> @@ -586,7 +586,7 @@ static int execute(struct sockaddr *addr)
> for (i = 0; i < ARRAY_SIZE(daemon_service); i++) {
> struct daemon_service *s = &(daemon_service[i]);
> int namelen = strlen(s->name);
> - if (!prefixcmp(line, "git-") &&
> + if ((!prefixcmp(line, "git-") || !prefixcmp(line, "git ")) &&
> !strncmp(s->name, line + 4, namelen) &&
> line[namelen + 4] == ' ') {
> /*
--
Shawn.
--
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
- Follow-Ups:
- Re: [PATCH] daemon: accept "git program" as well
- From: Junio C Hamano
- Re: [PATCH] daemon: accept "git program" as well
- References:
- [PATCH] Keep some git-* programs in $(bindir)
- From: Junio C Hamano
- [PATCH] Ask for "git program" when asking for "git-program" over SSH connection
- From: Junio C Hamano
- Re: [PATCH] Ask for "git program" when asking for "git-program" over SSH connection
- From: Shawn O. Pearce
- Re: [PATCH] Ask for "git program" when asking for "git-program" over SSH connection
- From: Junio C Hamano
- Re: [PATCH] Ask for "git program" when asking for "git-program" over SSH connection
- From: Shawn O. Pearce
- Re: [PATCH] Ask for "git program" when asking for "git-program" over SSH connection
- From: Junio C Hamano
- Re: [PATCH] Ask for "git program" when asking for "git-program" over SSH connection
- From: Junio C Hamano
- Re: [PATCH] Ask for "git program" when asking for "git-program" over SSH connection
- From: Junio C Hamano
- Re: [PATCH] Ask for "git program" when asking for "git-program" over SSH connection
- From: Shawn O. Pearce
- [PATCH] daemon: accept "git program" as well
- From: Junio C Hamano
- [PATCH] Keep some git-* programs in $(bindir)
- Prev by Date: [PATCH] Ask for "git program" even against git-daemon
- Next by Date: Re: policy and mechanism for less-connected clients
- Previous by thread: Re: [PATCH] Make clients ask for "git program" over ssh and local transport
- Next by thread: Re: [PATCH] daemon: accept "git program" as well
- Index(es):