On Fri, Oct 20, 2023 at 03:26:26PM +0300, Amir Yalon wrote:
> So simple! I did a `git grep -w master` on the code, and indeed all other references are either in subconfigs, in mirroring or in tests.
>
> On Fri, 20 Oct 2023, at 08:05, Sitaram Chamarty wrote:
> > + $master =~ s(.*/)();
>
> I think `/` is a valid character in branch names, so maybe change it to:
You mean someone will change what used to be "master" to
"foo/bar"? I had not thought of that, but at the same time, it
seems quite a pathological use, not to mention apt to be
confused with remote branches at least in some contexts. Let's
not go overboard here.
> BTW, my original suggestion was not to add `--initial-branch=master` to the `git init --bare`, but rather to add an invocation of `git branch -m master` right after `git init --bare`. This approach should be supported back to much older versions of Git.
I see that now; sorry I missed it somehow in my earlier reading
and picked up on the second line only in my irc backlog.
Yes that might be simpler I guess.
Let's wait to hear some more voices on this patch. Meanwhile,
did you get a chance to *test* this? Did it work?