Fix 'clone' failure at DOS root directory.
commit86a7918970df03852b0dee02a3da2b4b9d408d41
authorEric Sunshine <sunshine@sunshineco.com>
Wed, 7 Jul 2010 01:48:47 +0000 (6 21:48 -0400)
committerPat Thoyts <patthoyts@users.sourceforge.net>
Fri, 1 Oct 2010 22:27:35 +0000 (1 23:27 +0100)
tree5af085c6e59303961c49f39e1754887179c5cdf1
parent94e27e43131f56177481a6415bdeb88cfc07e7d6
Fix 'clone' failure at DOS root directory.

Cloning via relative path fails for a project residing immediately under
the root directory of a DOS drive.  For instance, for project c:/foo,
issuing "cd c:/" followed by "git clone foo bar" fails with error
"Unable to find remote helper for 'c'".  The problem is caused by
make_nonrelative_path() incorrectly returning c://foo rather than
c:/foo for input "foo".  The bogus path c://foo is misinterpreted by
transport_get() as a URL with unrecognized protocol "c", hence the
missing remote helper error.  Fix make_nonrelative_path() to return
c:/foo rather than c://foo (and /foo rather than //foo on Unix).

Resolves msysgit issue #501:
http://code.google.com/p/msysgit/issues/detail?id=501

Signed-off-by: Eric Sunshine <sunshine@sunshineco.com>
Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
abspath.c