Re: [PATCH v2] clone: allow cloning local paths with colons in them

2013-05-07 Thread Jeff King
On Tue, May 07, 2013 at 08:34:51AM -0700, Junio C Hamano wrote: > Nguyễn Thái Ngọc Duy writes: > > > diff --git a/t/t5601-clone.sh b/t/t5601-clone.sh > > index 67869b4..0629149 100755 > > --- a/t/t5601-clone.sh > > +++ b/t/t5601-clone.sh > > @@ -280,4 +280,9 @@ test_expect_success 'clone checkin

Re: [PATCH v2] clone: allow cloning local paths with colons in them

2013-05-07 Thread Junio C Hamano
Nguyễn Thái Ngọc Duy writes: > diff --git a/t/t5601-clone.sh b/t/t5601-clone.sh > index 67869b4..0629149 100755 > --- a/t/t5601-clone.sh > +++ b/t/t5601-clone.sh > @@ -280,4 +280,9 @@ test_expect_success 'clone checking out a tag' ' > test_cmp fetch.expected fetch.actual > ' > > +test_ex

[PATCH v2] clone: allow cloning local paths with colons in them

2013-05-03 Thread Nguyễn Thái Ngọc Duy
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,