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

Re: [PATCH] rename default branch from 'master' to 'main' in refs and test scripts

From
Andreas Schwab <schwab@linux-m68k.org>
Date
Aug 26, 2025, 09:14 UTC
Message-ID
<875xeamolx.fsf@igel.home>
In-Reply-To
<pull.1961.git.1756183921623.gitgitgadget@gmail.com>
On Aug 26 2025, Wing Huang via GitGitGadget wrote:
Show 10 quoted lines
> diff --git a/remote.c b/remote.c
> index 81d8fc017e1..ffc4089a1c2 100644
> --- a/remote.c
> +++ b/remote.c
> @@ -2379,7 +2379,7 @@ struct ref *guess_remote_head(const struct ref *head,
>  			return copy_ref(r);
>  
>  		/* Fall back to the hard-coded historical default */
> -		r = find_ref_by_name(refs, "refs/heads/master");
> +		r = find_ref_by_name(refs, "refs/heads/main");
That comment is no longer accurate.
-- 
Andreas Schwab, schwab@linux-m68k.org
GPG Key fingerprint = 7578 EB47 D4E5 4D69 2510  2552 DF73 E780 A9DA AEC1
"And now for something completely different."
Previous: Wing Huang via GitGitGadgetNext: Phillip Wood
Message 2 of 6 in “rename default branch from 'master' to 'main' in refs and test scripts”
  1. rename default branch from 'master' to 'main' in refs and test scriptsWing Huang via GitGitGadget, Aug 26, 2025
  2. Andreas SchwabAug 26, 2025
  3. Phillip WoodAug 26, 2025
  4. Jeff KingAug 26, 2025
  5. Phillip WoodAug 27, 2025
  6. Phillip WoodAug 26, 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.