<?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>13586</bug_id>
          
          <creation_ts>2019-10-08 19:34:05 +0000</creation_ts>
          <short_desc>gitshallow: attempt to fetch missing revs in BB_GIT_SHALLOW_REVS</short_desc>
          <delta_ts>2021-03-16 17:54:30 +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>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>Medium+</priority>
          <bug_severity>minor</bug_severity>
          <target_milestone>Future</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Christopher Larson">kergoth</reporter>
          <assigned_to name="Christopher Larson">kergoth</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>No (bug/feature does not impact docs)</cf_docchange>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>85263</commentid>
    <comment_count>0</comment_count>
    <who name="Christopher Larson">kergoth</who>
    <bug_when>2019-10-08 19:34:05 +0000</bug_when>
    <thetext>The BB_GIT_SHALLOW_REVS variable lists revisions to use for constructing the shallow repository. For example, if I have a version 4.19.13 kernel recipe, i can specify BB_GIT_SHALLOW_REVS=v4.19 to remove the 4.19 history, leaving only the commits from v4.19 up to the 4.19.13 SRCREV. This lets you control what history is kept, avoiding shipping a massive tarball to a customer, for example, while still distributing the bits which might not be in a public layer.

The issue is, when it determines whether the clonedir needs updating, it only checks for the presence of the SRCREV, not the revs listed in the shallow variable, so if I&apos;m using a trimmed kernel fork that doesn&apos;t *have* the v4.19 tag, and I add the missing tag to the repo, it won&apos;t pick that up, and will continue to fail to construct the shallow repository until I manually update the clone in DL_DIR or force bitbake to do so.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>85394</commentid>
    <comment_count>1</comment_count>
    <who name="Christopher Larson">kergoth</who>
    <bug_when>2019-10-18 18:27:46 +0000</bug_when>
    <thetext>Fixed by https://github.com/openembedded/bitbake/compare/master...kergoth:13586, pending email to the list and then merge. I&apos;ll submit to the list today after doing another run of the bitbake unit tests (the fetch tests are failing for unrelated reasons at the moment).</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>85413</commentid>
    <comment_count>2</comment_count>
    <who name="Christopher Larson">kergoth</who>
    <bug_when>2019-10-21 17:33:30 +0000</bug_when>
    <thetext>Submitted to the bitbake-devel list pending review.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>89631</commentid>
    <comment_count>3</comment_count>
    <who name="Christopher Larson">kergoth</who>
    <bug_when>2021-03-16 17:54:30 +0000</bug_when>
    <thetext>This was fixed in 93b65e3c6ca64f644946953980595c44fbbcc748 &amp; f7a973604fbfd1059875ff1fabb3f885df9c5b95</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>