{"thread":{"id":"17435","subject":"git clone --bare doesn't create refs/heads/*?","startedAt":"2009-01-29T14:06:39Z","lastAt":"2009-01-29T14:48:01Z","messageCount":5,"participants":["Tay Ray Chuan","Miklos Vajna"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"102452","messageId":"be6fef0d0901290606q25ad7c82ob250a5f89d4db0cf@mail.gmail.com","threadId":"17435","inReplyTo":null,"subject":"git clone --bare doesn't create refs/heads/*?","fromName":"Tay Ray Chuan","fromEmail":"rctay89@gmail.com","sentAt":"2009-01-29T14:06:39Z","receivedAt":"2009-01-29T14:06:39Z","isPatch":false,"sender":{"key":"rctay89@gmail.com","avatar":"https://avatars.githubusercontent.com/u/61553?v=4"},"body":"Hi,\n\njust like to clarify a doubt of mine.\n\nafaik, a bare repository is just a copy of the .git folder of the\ncloned repository. why isn't any of its branches copied too?\n\n-- \nCheers,\nRay Chuan\n"},{"id":"102457","messageId":"20090129142657.GG21473@genesis.frugalware.org","threadId":"17435","inReplyTo":"be6fef0d0901290606q25ad7c82ob250a5f89d4db0cf@mail.gmail.com","subject":"Re: git clone --bare doesn't create refs/heads/*?","fromName":"Miklos Vajna","fromEmail":"vmiklos@frugalware.org","sentAt":"2009-01-29T14:26:57Z","receivedAt":"2009-01-29T14:26:57Z","isPatch":false,"sender":{"key":"vmiklos@frugalware.org","avatar":"https://gravatar.com/avatar/401c1cbbb3a5d13e650c691a2c71d6fd0b80df1a01bc74d9f1972675dd58f2bd?d=mp&s=160"},"body":"On Thu, Jan 29, 2009 at 10:06:39PM +0800, Tay Ray Chuan <rctay89@gmail.com> wrote:\n> afaik, a bare repository is just a copy of the .git folder of the\n> cloned repository. why isn't any of its branches copied too?\n\nMaybe you're searching for git clone --mirror and not git clone --bare?\n"},{"id":"102459","messageId":"be6fef0d0901290636m5b472499mdf614841a06ec978@mail.gmail.com","threadId":"17435","inReplyTo":"20090129142657.GG21473@genesis.frugalware.org","subject":"Re: git clone --bare doesn't create refs/heads/*?","fromName":"Tay Ray Chuan","fromEmail":"rctay89@gmail.com","sentAt":"2009-01-29T14:36:26Z","receivedAt":"2009-01-29T14:36:26Z","isPatch":false,"sender":{"key":"rctay89@gmail.com","avatar":"https://avatars.githubusercontent.com/u/61553?v=4"},"body":"Hmm, no, --mirror adds extra remote tracking information.\n\nQuoting the git-clone man page:\n\n\"...the branch heads at the remote are copied directly...\"\n\nwhich is to say, git clone --bare isn't doing what it's supposed to do.\n\nthat said, i'm not too sure about this, hence this thread.\n\nOn Thu, Jan 29, 2009 at 10:26 PM, Miklos Vajna <vmiklos@frugalware.org> wrote:\n> On Thu, Jan 29, 2009 at 10:06:39PM +0800, Tay Ray Chuan <rctay89@gmail.com> wrote:\n>> afaik, a bare repository is just a copy of the .git folder of the\n>> cloned repository. why isn't any of its branches copied too?\n>\n> Maybe you're searching for git clone --mirror and not git clone --bare?\n>\n\n\n\n-- \nCheers,\nRay Chuan\n"},{"id":"102460","messageId":"20090129144036.GH21473@genesis.frugalware.org","threadId":"17435","inReplyTo":"be6fef0d0901290636m5b472499mdf614841a06ec978@mail.gmail.com","subject":"Re: git clone --bare doesn't create refs/heads/*?","fromName":"Miklos Vajna","fromEmail":"vmiklos@frugalware.org","sentAt":"2009-01-29T14:40:36Z","receivedAt":"2009-01-29T14:40:36Z","isPatch":false,"sender":{"key":"vmiklos@frugalware.org","avatar":"https://gravatar.com/avatar/401c1cbbb3a5d13e650c691a2c71d6fd0b80df1a01bc74d9f1972675dd58f2bd?d=mp&s=160"},"body":"[ Please don't top-post. ]\n\nOn Thu, Jan 29, 2009 at 10:36:26PM +0800, Tay Ray Chuan <rctay89@gmail.com> wrote:\n> Hmm, no, --mirror adds extra remote tracking information.\n> \n> Quoting the git-clone man page:\n> \n> \"...the branch heads at the remote are copied directly...\"\n> \n> which is to say, git clone --bare isn't doing what it's supposed to do.\n> \n> that said, i'm not too sure about this, hence this thread.\n\nAh, packed refs. :)\n\nSee man git-pack-refs, git clone uses it to pack refs after a clone.\nThey are still in the 'packed-refs' file.\n"},{"id":"102462","messageId":"be6fef0d0901290648g3e057255p2e69491edc3227e2@mail.gmail.com","threadId":"17435","inReplyTo":"20090129144036.GH21473@genesis.frugalware.org","subject":"Re: git clone --bare doesn't create refs/heads/*?","fromName":"Tay Ray Chuan","fromEmail":"rctay89@gmail.com","sentAt":"2009-01-29T14:48:01Z","receivedAt":"2009-01-29T14:48:01Z","isPatch":false,"sender":{"key":"rctay89@gmail.com","avatar":"https://avatars.githubusercontent.com/u/61553?v=4"},"body":"On Thu, Jan 29, 2009 at 10:40 PM, Miklos Vajna <vmiklos@frugalware.org> wrote:\n> [ Please don't top-post. ]\n\nOops.\n\n> Ah, packed refs. :)\n>\n> See man git-pack-refs, git clone uses it to pack refs after a clone.\n> They are still in the 'packed-refs' file.\n\nThanks, that does clears things up.\n\n\n-- \nCheers,\nRay Chuan\n"}]}