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

Re: changed output in git branch -a

From
Olaf Hering <olaf@aepfle.de>
Date
Jun 30, 2025, 14:19 UTC
Message-ID
<20250630161953.3824c610.olaf@aepfle.de>
In-Reply-To
<xmqqsejh5pam.fsf@gitster.g>
Mon, 30 Jun 2025 06:31:29 -0700 Junio C Hamano <gitster@pobox.com>:
> You can try in the repository where you use Git 2.43
>     $ git remote set-head origin -a
>     $ git branch -a
> to see if the difference indeed is coming from different versions.

Thanks, it does not depend on the version. For some reason the repository on the system with the older git had no default branch set. The repository was cloned a long time ago, maybe default branches were never set initially.

I changed my script to use for-each-ref.
Olaf
Previous: Junio C Hamano
Message 4 of 4 in “changed output in git branch -a”
  1. Olaf HeringJun 30, 2025
  2. Kristoffer HaugsbakkJun 30, 2025
  3. Junio C HamanoJun 30, 2025
  4. Olaf HeringJun 30, 2025

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.