* git clone --bare doesn't create refs/heads/*?
@ 2009-01-29 14:06 Tay Ray Chuan
2009-01-29 14:26 ` Miklos Vajna
0 siblings, 1 reply; 5+ messages in thread
From: Tay Ray Chuan @ 2009-01-29 14:06 UTC (permalink / raw)
To: git
Hi,
just like to clarify a doubt of mine.
afaik, a bare repository is just a copy of the .git folder of the
cloned repository. why isn't any of its branches copied too?
--
Cheers,
Ray Chuan
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: git clone --bare doesn't create refs/heads/*?
2009-01-29 14:06 git clone --bare doesn't create refs/heads/*? Tay Ray Chuan
@ 2009-01-29 14:26 ` Miklos Vajna
2009-01-29 14:36 ` Tay Ray Chuan
0 siblings, 1 reply; 5+ messages in thread
From: Miklos Vajna @ 2009-01-29 14:26 UTC (permalink / raw)
To: Tay Ray Chuan; +Cc: git
[-- Attachment #1: Type: text/plain, Size: 287 bytes --]
On Thu, Jan 29, 2009 at 10:06:39PM +0800, Tay Ray Chuan <rctay89@gmail.com> wrote:
> afaik, a bare repository is just a copy of the .git folder of the
> cloned repository. why isn't any of its branches copied too?
Maybe you're searching for git clone --mirror and not git clone --bare?
[-- Attachment #2: Type: application/pgp-signature, Size: 197 bytes --]
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: git clone --bare doesn't create refs/heads/*?
2009-01-29 14:26 ` Miklos Vajna
@ 2009-01-29 14:36 ` Tay Ray Chuan
2009-01-29 14:40 ` Miklos Vajna
0 siblings, 1 reply; 5+ messages in thread
From: Tay Ray Chuan @ 2009-01-29 14:36 UTC (permalink / raw)
To: Miklos Vajna; +Cc: git
Hmm, no, --mirror adds extra remote tracking information.
Quoting the git-clone man page:
"...the branch heads at the remote are copied directly..."
which is to say, git clone --bare isn't doing what it's supposed to do.
that said, i'm not too sure about this, hence this thread.
On Thu, Jan 29, 2009 at 10:26 PM, Miklos Vajna <vmiklos@frugalware.org> wrote:
> On Thu, Jan 29, 2009 at 10:06:39PM +0800, Tay Ray Chuan <rctay89@gmail.com> wrote:
>> afaik, a bare repository is just a copy of the .git folder of the
>> cloned repository. why isn't any of its branches copied too?
>
> Maybe you're searching for git clone --mirror and not git clone --bare?
>
--
Cheers,
Ray Chuan
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: git clone --bare doesn't create refs/heads/*?
2009-01-29 14:36 ` Tay Ray Chuan
@ 2009-01-29 14:40 ` Miklos Vajna
2009-01-29 14:48 ` Tay Ray Chuan
0 siblings, 1 reply; 5+ messages in thread
From: Miklos Vajna @ 2009-01-29 14:40 UTC (permalink / raw)
To: Tay Ray Chuan; +Cc: git
[-- Attachment #1: Type: text/plain, Size: 563 bytes --]
[ Please don't top-post. ]
On Thu, Jan 29, 2009 at 10:36:26PM +0800, Tay Ray Chuan <rctay89@gmail.com> wrote:
> Hmm, no, --mirror adds extra remote tracking information.
>
> Quoting the git-clone man page:
>
> "...the branch heads at the remote are copied directly..."
>
> which is to say, git clone --bare isn't doing what it's supposed to do.
>
> that said, i'm not too sure about this, hence this thread.
Ah, packed refs. :)
See man git-pack-refs, git clone uses it to pack refs after a clone.
They are still in the 'packed-refs' file.
[-- Attachment #2: Type: application/pgp-signature, Size: 197 bytes --]
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: git clone --bare doesn't create refs/heads/*?
2009-01-29 14:40 ` Miklos Vajna
@ 2009-01-29 14:48 ` Tay Ray Chuan
0 siblings, 0 replies; 5+ messages in thread
From: Tay Ray Chuan @ 2009-01-29 14:48 UTC (permalink / raw)
To: Miklos Vajna; +Cc: git
On Thu, Jan 29, 2009 at 10:40 PM, Miklos Vajna <vmiklos@frugalware.org> wrote:
> [ Please don't top-post. ]
Oops.
> Ah, packed refs. :)
>
> See man git-pack-refs, git clone uses it to pack refs after a clone.
> They are still in the 'packed-refs' file.
Thanks, that does clears things up.
--
Cheers,
Ray Chuan
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2009-01-29 14:49 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-01-29 14:06 git clone --bare doesn't create refs/heads/*? Tay Ray Chuan
2009-01-29 14:26 ` Miklos Vajna
2009-01-29 14:36 ` Tay Ray Chuan
2009-01-29 14:40 ` Miklos Vajna
2009-01-29 14:48 ` Tay Ray Chuan
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).