From: Andreas Schwab Date: Tue, 26 Aug 2025 09:14:18 GMT Subject: Re: [PATCH] rename default branch from 'master' to 'main' in refs and test scripts Message-ID: <875xeamolx.fsf@igel.home> In-Reply-To: On Aug 26 2025, Wing Huang via GitGitGadget wrote: > 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."