git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: on pulling/cloning git notes

From
Christian MICHON <christian.michon@gmail.com>
Date
Jun 24, 2010, 12:25 UTC
Message-ID
<AANLkTilGS6t29J4NQMgseZY9WD1kAPCr9oFeQt1RaWjP@mail.gmail.com>
In-Reply-To
<4C2329E5.8050904@drmicha.warpmail.net>

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:daat
Show 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:daat
Thanks for the hint, Michael!
-- 
Christian
--
http://detaolb.sourceforge.net/, a linux distribution for Qemu with Git inside !
Previous: Michael J GruberNext: Michael J Gruber
Message 3 of 5 in “on pulling/cloning git notes”
  1. Christian MICHONJun 24, 2010
  2. Michael J GruberJun 24, 2010
  3. Christian MICHONJun 24, 2010
  4. Michael J GruberJun 24, 2010
  5. Christian MICHONJun 24, 2010

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.