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?