Re: on pulling/cloning git notes
- From
Michael J Gruber <git@drmicha.warpmail.net>
- Date
- Jun 24, 2010, 13:16 UTC
- Message-ID
- <4C235ABE.9050504@drmicha.warpmail.net>
- In-Reply-To
- <AANLkTilGS6t29J4NQMgseZY9WD1kAPCr9oFeQt1RaWjP@mail.gmail.com>
Christian MICHON venit, vidit, dixit 24.06.2010 14:25:
Show 9 quoted lines
> On Thu, Jun 24, 2010 at 11:48 AM, Michael J Gruber > <git@drmicha.warpmail.net> wrote: >> As you can see from the default "fetch" line above, "refs/heads" are >> fetched by default (when cloning, fetching etc.), but nothing else >> (well, besides some tags). You can set up an additional fetch refspec to >> get the notes also. > > I'm actually doing a fresh clone elsewhere, using 'git clone --mirror > gitolite:daat'.
You didn't say "--mirror" before ;)
Show 7 quoted lines
> > I was expecting to grab everything from the remote refs, as in this > case my .git/config will look like this: > [remote "origin"] > fetch = +refs/*:refs/* > mirror = true > url = gitolite:daat
Hmmh. I have notes in the standard "refs/notes/commits", push them into that same ref on the remote side (using an additional push refspec). When I "clone --mirror" that I do get them back in "refs/notes/commits" in the (bare) mirror repo.
Show 7 quoted lines
> [remote "origin"] > fetch = +refs/heads/*:refs/notes/* > mirror = true > url = gitolite:daat > > Thanks for the hint, Michael! >
I'm glad it helped though I don't know why...
Did you push the notes into head refs?
Comparing the output of
git ls-remote gitolite:daat
to that of "git show-ref" in you local repos (the original one and the mirror) may clear things up quite a bit.
Cheers, Michael