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

Re: how to fetch entire heirarchy of refs from a remote?

From
Jacob Keller <jacob.keller@gmail.com>
Date
Jan 8, 2016, 16:30 UTC
Message-ID
<CA+P7+xogcBaAfWi5nf85ki44p+fLHJiRWUu5iMMaFutenoA83g@mail.gmail.com>
In-Reply-To
<xmqqfuy92bt7.fsf@gitster.mtv.corp.google.com>
On Thu, Jan 7, 2016 at 3:45 PM, Junio C Hamano <gitster@pobox.com> wrote:
Show 15 quoted lines
>> does show them? Any particular reason for why this is? I am confused
>> why refs aren't showing up inside the refs folder...
>
> Does
>
>         git for-each-ref refs/changes/
>
> in your local resulting repository show them?
>
> There is nothing that says "ls -R .git/refs/" is the way to
> enumerate available refs (in fact it is a _wrong_ way that is
> guaranteed to give you wrong results).
>
> Hint: .git/packed-refs
>
Yep I figured that out :) Now I know better!

Regards, Jake

Previous: Junio C HamanoNext: Jacob Keller
Message 7 of 8 in “how to fetch entire heirarchy of refs from a remote?”
  1. Jacob KellerJan 7, 2016
  2. Junio C HamanoJan 7, 2016
  3. Jacob KellerJan 7, 2016
  4. Jacob KellerJan 7, 2016
  5. Jacob KellerJan 7, 2016
  6. Junio C HamanoJan 7, 2016
  7. Jacob KellerJan 8, 2016
  8. Jacob KellerJan 7, 2016

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.