From: Junio C Hamano Date: Mon, 10 Jan 2011 17:01:09 GMT Subject: Re: [PATCH] submodule: fix relative url parsing for scp-style origin Message-ID: <7v62tw7kx6.fsf@alter.siamese.dyndns.org> In-Reply-To: <7a578ef3384a891cebd4a39421302983499771e0.1294655635.git.trast@student.ethz.ch> Thomas Rast writes: > The function resolve_relative_url was not prepared to deal with an > scp-style origin 'user@host:path' in the case where 'path' is only a > single component. Fix this by extending the logic that strips one > path component from the $remoteurl. > > Also add tests for both styles of URLs. > > Noticed-by: Jeffrey Phillips Freeman > Signed-off-by: Thomas Rast > --- > > If Mark agrees with the fix, I think this should go in before 1.7.4 > since it's a pretty annoying bug. Seems obvious to me from a cursory look; thanks.