<?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>15222</bug_id>
          
          <creation_ts>2023-10-04 06:36:19 +0000</creation_ts>
          <short_desc>devtool upgrade ignores git system configuration</short_desc>
          <delta_ts>2023-10-31 05:58:12 +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>Scripts and Tools</component>
          <version>4.0</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>5.0</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Marcus Flyckt">marcus.flyckt</reporter>
          <assigned_to name="Marcus Flyckt">marcus.flyckt</assigned_to>
          <cc>randy.macleod</cc>
    
    <cc>ross.burton</cc>
          
          
          <cf_os>---</cf_os>
          <cf_regression_type>---</cf_regression_type>
          
          <cf_docchange>No (bug/feature does not impact docs)</cf_docchange>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>96608</commentid>
    <comment_count>0</comment_count>
    <who name="Marcus Flyckt">marcus.flyckt</who>
    <bug_when>2023-10-04 06:36:19 +0000</bug_when>
    <thetext>In my yocto docker container I have my git configuration at /etc/gitconfig (i.e `git config --system`). But `devtool upgrade` only checks `git --global` (i.e `$HOME/.gitconfig`) and complains that my git configuration is incomplete

```
pokyuser@c68fe28b8f36:/platform_builddir/build$ git config user.name
Marcus Flyckt
pokyuser@c68fe28b8f36:/platform_builddir/build$ git config user.email
mafl@kvaser.com
pokyuser@c68fe28b8f36:/platform_builddir/build$ devtool upgrade libdatachannel
NOTE: Starting bitbake server...
ERROR: Your git configuration is incomplete which will prevent rebases from working:
Please set your name using:
  git config --global user.name
Please set your email using:
  git config --global user.email
```</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>96610</commentid>
    <comment_count>1</comment_count>
    <who name="Ross Burton">ross.burton</who>
    <bug_when>2023-10-04 11:20:26 +0000</bug_when>
    <thetext>Sounds like an easy fix, can you send a patch?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>96611</commentid>
    <comment_count>2</comment_count>
    <who name="Marcus Flyckt">marcus.flyckt</who>
    <bug_when>2023-10-04 12:39:54 +0000</bug_when>
    <thetext>Sure. Where should I send that patch and in what format?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>96613</commentid>
    <comment_count>3</comment_count>
    <who name="Ross Burton">ross.burton</who>
    <bug_when>2023-10-04 19:10:49 +0000</bug_when>
    <thetext>This will be an interesting test of the new Contributor Guide!

The actual code fix is, as far as I can tell, simply deleting &quot;--global&quot; from the correct git call.

Then follow the process documented in https://docs.yoctoproject.org/contributor-guide/submit-changes.html.  Please do say if there&apos;s anything missing or confusing in there, it&apos;s brand-new hot-off-the-press documentation that may well need tweaking.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>96654</commentid>
    <comment_count>4</comment_count>
    <who name="Marcus Flyckt">marcus.flyckt</who>
    <bug_when>2023-10-06 06:36:36 +0000</bug_when>
    <thetext>I&apos;ve followed the documented process and submitted a patch to the Openembedded-core@lists.openembedded.org mailing list.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>97042</commentid>
    <comment_count>5</comment_count>
    <who name="Ross Burton">ross.burton</who>
    <bug_when>2023-10-30 15:17:32 +0000</bug_when>
    <thetext>Fixed in 30a9f7de45050c8bac49d4b37419cc2e067a75fa.

Marcus, did you find any problems or gaps in the documentation?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>97165</commentid>
    <comment_count>6</comment_count>
    <who name="Marcus Flyckt">marcus.flyckt</who>
    <bug_when>2023-10-31 05:58:12 +0000</bug_when>
    <thetext>I followed the steps in the documentation verbatim. I found it comprehensive and simple to follow.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>