<?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>15405</bug_id>
          
          <creation_ts>2024-02-19 13:19:47 +0000</creation_ts>
          <short_desc>support git&apos;s safe.bareRepository=explicit</short_desc>
          <delta_ts>2026-05-28 13:16:28 +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>BitBake</product>
          <component>bitbake</component>
          <version>unspecified</version>
          <rep_platform>x86</rep_platform>
          <op_sys>Multiple</op_sys>
          <bug_status>NEW</bug_status>
          <resolution></resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>Medium</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>6.1</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="André Draszik">byo</reporter>
          <assigned_to name="Unassigned">unassigned</assigned_to>
          <cc>poky.bs.watcher</cc>
    
    <cc>poky.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>98230</commentid>
    <comment_count>0</comment_count>
    <who name="André Draszik">byo</who>
    <bug_when>2024-02-19 13:19:47 +0000</bug_when>
    <thetext>When git is configured with safe.bareRepository=explicit [1], various pieces in bitbake just fail:
* fetch2/git.py
* tests/fetch
* bin/git-make-shallow
LWN has an article about the problem that this configuration option addresses and why it is useful in [2].

It also seems that it is being rolled out in some environments as a default for users.

To reproduce, simply run
    git config --global safe.bareRepository explicit
to add safe.bareRepository=explicit to your ~/.gitconfig, and see things fail.

Link: https://git.kernel.org/pub/scm/git/git.git/tree/Documentation/config/safe.txt#n1 [1]
Link: https://lwn.net/Articles/892755/ [2]</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>98231</commentid>
    <comment_count>1</comment_count>
    <who name="André Draszik">byo</who>
    <bug_when>2024-02-19 13:21:57 +0000</bug_when>
    <thetext>These patches are the first stop-gap step to make bitbake/OE work with this
configuration option enabled. I believe in the future, these .

An initial set of stop-gap patches have been merged in [1] [2] [3], but the real solution should be to convert relevant pieces of code to invoking git with the --git-dir= option explicitly.

This bug is for tracking that.

Link: https://git.openembedded.org/bitbake/commit/?id=7c63989db4590564516ed150930f4e2fa503e98f [1]
Link: https://git.openembedded.org/bitbake/commit/?id=a45e14a7343e36101e45639931322e5649587f57 [2]
Link: https://git.openembedded.org/bitbake/commit/?id=5f3b1d8dc9ee70e707536bd75ee845b547440c97 [3]</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>98259</commentid>
    <comment_count>2</comment_count>
    <who name="Randy MacLeod">randy.macleod</who>
    <bug_when>2024-02-22 15:40:21 +0000</bug_when>
    <thetext>schedule for 5.1 if someone volunteers to work on it.
There&apos;s a work-around for now.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>101815</commentid>
    <comment_count>3</comment_count>
    <who name="Randy MacLeod">randy.macleod</who>
    <bug_when>2025-05-01 14:07:08 +0000</bug_when>
    <thetext>Bulk move of all unassigned 5.2 medium importance bugs to 5.3.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>104804</commentid>
    <comment_count>4</comment_count>
    <who name="Randy MacLeod">randy.macleod</who>
    <bug_when>2026-03-25 23:51:52 +0000</bug_when>
    <thetext>Can someone, maybe future me, check if this is still broken on master given the workflow described?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>105595</commentid>
    <comment_count>5</comment_count>
    <who name="Randy MacLeod">randy.macleod</who>
    <bug_when>2026-05-28 13:16:28 +0000</bug_when>
    <thetext>Bulk move of 6.0 Medium bugs to 6.1.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>