{"thread":{"id":"28175","subject":"Failure cloning from a separate-git-dir repository","startedAt":"2011-08-20T17:47:57Z","lastAt":"2011-08-21T18:51:43Z","messageCount":6,"participants":["Richard Tibbitt","Nguyen Thai Ngoc Duy","Junio C Hamano"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"173923","messageId":"6csv47te4qv41ni53q0kf1fne0a4e1grnm@4ax.com","threadId":"28175","inReplyTo":null,"subject":"Failure cloning from a separate-git-dir repository","fromName":"Richard Tibbitt","fromEmail":"gitlist@lazyprune.com","sentAt":"2011-08-20T17:47:57Z","receivedAt":"2011-08-20T17:47:57Z","isPatch":false,"sender":{"key":"gitlist@lazyprune.com","avatar":null},"body":"Hi\n\nI've been struggling to find an answer to this for days.\n\nCan anyone confirm whether I've got the syntax right for 'Git clone'\nwhen attempting to clone FROM a repository that was initialized using\n--separate-git-dir ?\n\nIf so, does this work on Linux systems ?\n\nWith Git on windows (git version 1.7.6.msysgit.0 installed from\nGitExtensions224SetupComplete.msi) I get an error as below, that looks\nas though 'Git clone' is expecting the repo to have a 'normal'\nintegral .git dir \n\n\n  F:\\>mkdir repo2\n  F:\\>mkdir repo2git\n  F:\\>cd repo2\n  F:\\repo2>call git init --separate-git-dir=\"..\\repo2git\\.git\"\n  Initialized empty Git repository in F:/repo2git/.git/\n  F:\\repo2>echo abc >file1.txt\n  F:\\repo2>call git add . -A\n  F:\\repo2>call git commit -m \"first\"\n  [master (root-commit) c7e4766] first\n   1 files changed, 1 insertions(+), 0 deletions(-)\n   create mode 100644 file1.txt\n  F:\\repo2>cd ..\n  F:\\>call git clone repo2 clone2\n  Cloning into clone2...\n  fatal: failed to open 'F:/repo2/objects': No such file or directory\n\n\nMany thanks in advance for any insight into this.\n\nRichard\n"},{"id":"173924","messageId":"CACsJy8AavETJb-Lm0Qd6Sz54zYbgvDUWmf+uXYTxO3+iYNHvoA@mail.gmail.com","threadId":"28175","inReplyTo":"6csv47te4qv41ni53q0kf1fne0a4e1grnm@4ax.com","subject":"Re: Failure cloning from a separate-git-dir repository","fromName":"Nguyen Thai Ngoc Duy","fromEmail":"pclouds@gmail.com","sentAt":"2011-08-20T18:25:36Z","receivedAt":"2011-08-20T18:25:36Z","isPatch":false,"sender":{"key":"pclouds@gmail.com","avatar":"https://avatars.githubusercontent.com/u/720?v=4"},"body":"On Sun, Aug 21, 2011 at 12:47 AM, Richard Tibbitt <gitlist@lazyprune.com> wrote:\n>  F:\\>call git clone repo2 clone2\n>  Cloning into clone2...\n>  fatal: failed to open 'F:/repo2/objects': No such file or directory\n\nThis should be \"git clone repo2/.git clone2\", but with that command I got\n\nCloning into clone2..\nerror: '/tmp/repo2/.git' does not look like a v2 bundle file\nfatal: Could not read bundle '/tmp/repo2/.git'.\n\nYou just do \"git clone repo2git/.git clone2\" for now.\n-- \nDuy\n"},{"id":"173928","messageId":"p800579qgdoocnq388veh5gpjbu7r9ph52@4ax.com","threadId":"28175","inReplyTo":"CACsJy8AavETJb-Lm0Qd6Sz54zYbgvDUWmf+uXYTxO3+iYNHvoA@mail.gmail.com","subject":"Re: Failure cloning from a separate-git-dir repository","fromName":"Richard Tibbitt","fromEmail":"gitlist@lazyprune.com","sentAt":"2011-08-20T18:56:45Z","receivedAt":"2011-08-20T18:56:45Z","isPatch":false,"sender":{"key":"gitlist@lazyprune.com","avatar":null},"body":"On Sun, 21 Aug 2011 01:25:36 +0700, Nguyen Thai Ngoc Duy wrote:\n\n>This should be \"git clone repo2/.git clone2\", but with that command I got\n>\n>Cloning into clone2..\n>error: '/tmp/repo2/.git' does not look like a v2 bundle file\n>fatal: Could not read bundle '/tmp/repo2/.git'.\n>\n>You just do \"git clone repo2git/.git clone2\" for now.\n\nHi - thanks for trying that\n\nUnfortunately I'm getting :-\n\ncall git clone repo2git\\.git clone2\nfatal: repository 'repo2git\\.git' does not exist\n\n& similarly\n\ncall git clone repo2\\.git clone2\nfatal: repository 'repo2\\.git' does not exist\n\nI guess this must be a peculiarity of msysgit on windows.\n"},{"id":"173948","messageId":"CACsJy8A4kvjn5Bgo6FtS+x4z=CRz8ctoDHh7D8XV3frOjDVfbw@mail.gmail.com","threadId":"28175","inReplyTo":"p800579qgdoocnq388veh5gpjbu7r9ph52@4ax.com","subject":"Re: Failure cloning from a separate-git-dir repository","fromName":"Nguyen Thai Ngoc Duy","fromEmail":"pclouds@gmail.com","sentAt":"2011-08-21T03:27:44Z","receivedAt":"2011-08-21T03:27:44Z","isPatch":false,"sender":{"key":"pclouds@gmail.com","avatar":"https://avatars.githubusercontent.com/u/720?v=4"},"body":"On Sun, Aug 21, 2011 at 1:56 AM, Richard Tibbitt <gitlist@lazyprune.com> wrote:\n> call git clone repo2git\\.git clone2\n> fatal: repository 'repo2git\\.git' does not exist\n>\n> I guess this must be a peculiarity of msysgit on windows.\n\nYes. Try \"call git clone repo2git/.git clone2\" (forward slash). The\nforward slash is hard coded some places in git-clone. I just want to\nmake sure you dont hit another problem.\n-- \nDuy\n"},{"id":"173957","messageId":"upp157hv6v33nlfpsoeh68kqc7fvpdv7ig@4ax.com","threadId":"28175","inReplyTo":"CACsJy8A4kvjn5Bgo6FtS+x4z=CRz8ctoDHh7D8XV3frOjDVfbw@mail.gmail.com","subject":"Re: Failure cloning from a separate-git-dir repository","fromName":"Richard Tibbitt","fromEmail":"gitlist@lazyprune.com","sentAt":"2011-08-21T11:13:04Z","receivedAt":"2011-08-21T11:13:04Z","isPatch":false,"sender":{"key":"gitlist@lazyprune.com","avatar":null},"body":"On Sun, 21 Aug 2011 10:27:44 +0700, Nguyen Thai Ngoc Duy wrote:\n\n>Yes. Try \"call git clone repo2git/.git clone2\" (forward slash). The\n>forward slash is hard coded some places in git-clone. I just want to\n>make sure you dont hit another problem.\n\nThanks for that - same result sadly.\n\nI'll see what the guys on the msysgit list say about it.\n\nRichard\n"},{"id":"173962","messageId":"7vippqy4w0.fsf@alter.siamese.dyndns.org","threadId":"28175","inReplyTo":"CACsJy8A4kvjn5Bgo6FtS+x4z=CRz8ctoDHh7D8XV3frOjDVfbw@mail.gmail.com","subject":"Re: Failure cloning from a separate-git-dir repository","fromName":"Junio C Hamano","fromEmail":"gitster@pobox.com","sentAt":"2011-08-21T18:51:43Z","receivedAt":"2011-08-21T18:51:43Z","isPatch":false,"sender":{"key":"gitster@pobox.com","avatar":"https://avatars.githubusercontent.com/u/54884?v=4"},"body":"Nguyen Thai Ngoc Duy <pclouds@gmail.com> writes:\n\n> On Sun, Aug 21, 2011 at 1:56 AM, Richard Tibbitt <gitlist@lazyprune.com> wrote:\n>> call git clone repo2git\\.git clone2\n>> fatal: repository 'repo2git\\.git' does not exist\n>>\n>> I guess this must be a peculiarity of msysgit on windows.\n>\n> Yes. Try \"call git clone repo2git/.git clone2\" (forward slash). The\n> forward slash is hard coded some places in git-clone. I just want to\n> make sure you dont hit another problem.\n\nAs \"fetch from bundle\" (2e0afaf (Add git-bundle: move objects and\nreferences by archive, 2007-02-22)) predates the \"gitdir:\" support\n(b44ebb1 (Add platform-independent .git \"symlink\", 2008-02-20)) by a wide\nmargin, I wouldn't be surprised at all if the logic went \"If the name can\nbe stat()ed and is a regular file, it must be a bundle. Otherwise it is a\nlocal clone if it is a directory. All else ask the transport and see what\nit says\".\n\nWhy can't it be \"git clone repo2git clone2\" in the first place?\n"}]}