Re: on pulling/cloning git notes
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'.
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:daatShow 6 quoted lines
> It's not done by default because it's up to you decide what to do with
> the notes. Sometimes, you want them to end up in "refs/notes" so that
> they are displayed by default. But maybe you want them in
> "refs/notes/remotes/gitolites" e.g. and display them only on request
> (--show-notes=remotes/gitolite), or merge them into your own notes.
>
So the * in .git/config was misleading me. Instead I changed the fetch to this after the original clone, then performed an incremental fetch and it worked.
[remote "origin"]
fetch = +refs/heads/*:refs/notes/*
mirror = true
url = gitolite:daatThanks for the hint, Michael!
--
Christian
--
http://detaolb.sourceforge.net/, a linux distribution for Qemu with Git inside !