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

Re: Failure cloning from a separate-git-dir repository

From
Junio C Hamano <gitster@pobox.com>
Date
Aug 21, 2011, 18:51 UTC
Message-ID
<7vippqy4w0.fsf@alter.siamese.dyndns.org>
In-Reply-To
<CACsJy8A4kvjn5Bgo6FtS+x4z=CRz8ctoDHh7D8XV3frOjDVfbw@mail.gmail.com>
Nguyen Thai Ngoc Duy <pclouds@gmail.com> writes:
Show 9 quoted lines
> On Sun, Aug 21, 2011 at 1:56 AM, Richard Tibbitt <gitlist@lazyprune.com> wrote:
>> call git clone repo2git\.git clone2
>> fatal: repository 'repo2git\.git' does not exist
>>
>> I guess this must be a peculiarity of msysgit on windows.
>
> Yes. Try "call git clone repo2git/.git clone2" (forward slash). The
> forward slash is hard coded some places in git-clone. I just want to
> make sure you dont hit another problem.

As "fetch from bundle" (2e0afaf (Add git-bundle: move objects and references by archive, 2007-02-22)) predates the "gitdir:" support (b44ebb1 (Add platform-independent .git "symlink", 2008-02-20)) by a wide margin, I wouldn't be surprised at all if the logic went "If the name can be stat()ed and is a regular file, it must be a bundle. Otherwise it is a local clone if it is a directory. All else ask the transport and see what it says".

Why can't it be "git clone repo2git clone2" in the first place?
Previous: Richard Tibbitt
Message 6 of 6 in “Failure cloning from a separate-git-dir repository”
  1. Richard TibbittAug 20, 2011
  2. Nguyen Thai Ngoc DuyAug 20, 2011
  3. Richard TibbittAug 20, 2011
  4. Nguyen Thai Ngoc DuyAug 21, 2011
  5. Richard TibbittAug 21, 2011
  6. Junio C HamanoAug 21, 2011

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.