<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugzilla.yoctoproject.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.6"
          urlbase="https://bugzilla.yoctoproject.org/"
          
          maintainer="it-coreprojects-helpdesk@linuxfoundation.org"
>

    <bug>
          <bug_id>14185</bug_id>
          
          <creation_ts>2021-01-11 14:35:32 +0000</creation_ts>
          <short_desc>Git 2.30.0 defaults to main</short_desc>
          <delta_ts>2021-11-03 12:11:59 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>7</classification_id>
          <classification>Build System, Metadata &amp; Runtime</classification>
          <product>OE-Core</product>
          <component>core</component>
          <version>3.3</version>
          <rep_platform>x86</rep_platform>
          <op_sys>Multiple</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>Medium+</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>4.0 M1</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="akuster">akuster808</reporter>
          <assigned_to name="Richard Purdie">richard.purdie</assigned_to>
          <cc>meta.mr.watcher</cc>
    
    <cc>meta.watcher</cc>
    
    <cc>randy.macleod</cc>
          
          
          <cf_os>---</cf_os>
          <cf_regression_type>---</cf_regression_type>
          
          <cf_docchange>Don&apos;t know</cf_docchange>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>88910</commentid>
    <comment_count>0</comment_count>
    <who name="akuster">akuster808</who>
    <bug_when>2021-01-11 14:35:32 +0000</bug_when>
    <thetext>The latest git no longer defaults to &apos;master&apos;, its now main.  Need to check what impact that may have on fetchers or other supporting routines.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>88952</commentid>
    <comment_count>1</comment_count>
    <who name="akuster">akuster808</who>
    <bug_when>2021-01-16 20:23:34 +0000</bug_when>
    <thetext>it appears the article I read may have been incorrect. The 2.30.0 sources still have &quot;master&quot; as the default.

What they are providing is a method to re-define the default branch either by:

config --global init.defaultBranch &lt;name&gt;

or 

&quot;--initial-branch=&lt;branch-name&gt;&quot;

What they are doing is providing advice on not to use &quot;master&quot;.

What this leads now to think is maybe we don&apos;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&apos;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 &apos;;branch=&quot;master&quot;&apos;
then add a checker to issue a message if &quot;branch&quot; is not defined.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>91845</commentid>
    <comment_count>2</comment_count>
    <who name="Randy MacLeod">randy.macleod</who>
    <bug_when>2021-10-28 15:12:33 +0000</bug_when>
    <thetext>Need to add a warning if the branch isn&apos;t set.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>91880</commentid>
    <comment_count>3</comment_count>
    <who name="Richard Purdie">richard.purdie</who>
    <bug_when>2021-11-03 12:11:59 +0000</bug_when>
    <thetext>http://git.yoctoproject.org/cgit.cgi/poky/commit/?id=d576d9ca3a5e852ccfb1506e2df9fc09a9e30f52</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>