clone: allow cloning local paths with colons in them
authorNguyễn Thái Ngọc Duy <pclouds@gmail.com>
Sat, 4 May 2013 02:19:33 +0000 (09:19 +0700)
committerJunio C Hamano <gitster@pobox.com>
Tue, 7 May 2013 15:32:14 +0000 (08:32 -0700)
Usually "foo:bar" is interpreted as an ssh url. This patch allows to
clone from such paths by putting at least one slash before the colon
(i.e. /path/to/foo:bar or just ./foo:bar).

file://foo:bar should also work, but local optimizations are off in
that case, which may be unwanted. While at there, warn the users about
--local being ignored in this case.

Reported-by: William Giokas <1007380@gmail.com>
Signed-off-by: Nguyễn Thái Ngọc Duy <pclouds@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
No differences found