git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Andreas Ericsson <ae@op5.se>
To: git@vger.kernel.org
Subject: Re: [PATCH 1/4] Client side of user-relative paths, take two.
Date: Wed, 02 Nov 2005 09:19:37 +0100	[thread overview]
Message-ID: <43687699.8060609@op5.se> (raw)
In-Reply-To: <7vpspj6h3n.fsf@assigned-by-dhcp.cox.net>

Junio C Hamano wrote:
> Andreas Ericsson <ae@op5.se> writes:
> 
> 
>>+	if (protocol == PROTO_SSH && colon && (!path || colon < path)) {
>>+		*colon = 0;
>>+		path = colon + 1;
>>+	}
> 
> 
> I think "colon < path" is to cover "git://host.xz/foo/bar:baz"
> case (i.e. funny directory name with an embedded colon); I think
> you should reset colon to NULL if you do things differently
> later depending on colon is set or not, like this part:
> 
> 
>>+	/* null-terminate host part and point path to ~ for URL's like this:
>>+	 *    ssh://host.xz/~user/repo
>>+	 */
>>+	if(!colon && *(path + 1) == '~')
>>+		*path++ = '\0';
>>+	else {
>>+		colon = path;
>>+		path = strdup(path);
>>+		*colon = '\0';
> 
> 

True. Should I update this patch or submit a new one fixing only this 
specific issue?

-- 
Andreas Ericsson                   andreas.ericsson@op5.se
OP5 AB                             www.op5.se
Tel: +46 8-230225                  Fax: +46 8-230231

      reply	other threads:[~2005-11-02  8:19 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-11-01 22:59 [PATCH 1/4] Client side of user-relative paths, take two Andreas Ericsson
2005-11-02  0:14 ` Junio C Hamano
2005-11-02  8:19   ` Andreas Ericsson [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=43687699.8060609@op5.se \
    --to=ae@op5.se \
    --cc=git@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).