The latest git no longer defaults to 'master', its now main. Need to check what impact that may have on fetchers or other supporting routines.
it appears the article I read may have been incorrect. The 2.30.0 sources still have "master" as the default. What they are providing is a method to re-define the default branch either by: config --global init.defaultBranch <name> or "--initial-branch=<branch-name>" What they are doing is providing advice on not to use "master". What this leads now to think is maybe we don't assume the default is master. Maybe we should migrate to have a branch defined not mater what. This should avoid this issue all together. We may want to add a warning if no branch is defined as a check. I think 120 ish recipes in core don't have branch defined. I think the first step is to inform the community the intentions or preferred method when using git as a fetcher. I can send patches to add ';branch="master"' then add a checker to issue a message if "branch" is not defined.
Need to add a warning if the branch isn't set.
http://git.yoctoproject.org/cgit.cgi/poky/commit/?id=d576d9ca3a5e852ccfb1506e2df9fc09a9e30f52