Fix 'clone' failure at DOS root directory.
commitace097c64d1f070ae72a67344d206c6bc318d964
authorEric Sunshine <sunshine@sunshineco.com>
Wed, 7 Jul 2010 01:48:47 +0000 (6 21:48 -0400)
committerlmfadmin <lmfadmin@ubuntu.ubuntu-domain>
Fri, 3 Sep 2010 12:28:43 +0000 (3 13:28 +0100)
treeeaf74313d63703daf7b2b674ab3a426e7329e0b4
parent292701a022b72f5d96323de4a78fd74693745a68
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