git/list[1] front-page[2] threads[3] people[4] search[5] about
 

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

From
Junio C Hamano <gitster@pobox.com>
Date
May 7, 2013, 15:34 UTC
Message-ID
<7vehdils6c.fsf@alter.siamese.dyndns.org>
In-Reply-To
<1367633973-26214-1-git-send-email-pclouds@gmail.com>
Nguyễn Thái Ngọc Duy <pclouds@gmail.com> writes:
Show 12 quoted lines
> 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_expect_success NOT_MINGW,NOT_CYGWIN 'clone local path foo:bar' '
> +	cp -R src "foo:bar" &&
> +	git clone "./foo:bar" foobar
> +'
Hmph, why not
	git clone --mirror src foo:bar &&
        git clone ./foo:bar foobar

or something? Also do we have a easy negative case we want to test, i.e. a case where we do not want the new codepath to trigger by mistake?

Previous: Nguyễn Thái Ngọc DuyNext: Jeff King
Message 15 of 16 in “[BUG] Filenames with single colon being treated as remote repository”
  1. William GiokasApr 21, 2013
  2. Jonathan NiederApr 21, 2013
  3. Jeff KingApr 21, 2013
  4. Jonathan NiederApr 21, 2013
  5. Junio C HamanoApr 21, 2013
  6. Jeff KingApr 22, 2013
  7. Junio C HamanoApr 22, 2013
  8. clone: allow cloning local paths with colons in themNguyễn Thái Ngọc Duy, Apr 27, 2013
  9. William GiokasApr 27, 2013
  10. Junio C HamanoApr 27, 2013
  11. Duy NguyenApr 28, 2013
  12. Eric SunshineApr 28, 2013
  13. Duy NguyenApr 28, 2013
  14. clone: allow cloning local paths with colons in themNguyễn Thái Ngọc Duy, May 4, 2013
  15. Junio C HamanoMay 7, 2013
  16. Jeff KingMay 7, 2013

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.