<?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>15207</bug_id>
          
          <creation_ts>2023-09-05 11:47:11 +0000</creation_ts>
          <short_desc>fetcher: git clone should allow use --depth to reduce data size</short_desc>
          <delta_ts>2023-09-08 08:47:52 +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>NOTABUG</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>Undecided</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>0.0.0</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Gavin">attinagaoxu</reporter>
          <assigned_to name="Richard Purdie">richard.purdie</assigned_to>
          <cc>poky.bs.watcher</cc>
    
    <cc>poky.watcher</cc>
    
    <cc>ross.burton</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>96343</commentid>
    <comment_count>0</comment_count>
    <who name="Gavin">attinagaoxu</who>
    <bug_when>2023-09-05 11:47:11 +0000</bug_when>
    <thetext>It&apos;s really painful to clone large size repository (such as Linux kernel) under bad network condition. It should allow git clone use --depth parameter to reduce data size. Most of the time, we don&apos;t need too long history. I didn&apos;t find any parameter can do this in the document. If no such feature, I suggest to add this option.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>96355</commentid>
    <comment_count>1</comment_count>
    <who name="Ross Burton">ross.burton</who>
    <bug_when>2023-09-07 14:44:53 +0000</bug_when>
    <thetext>This isn&apos;t quite as simple as you&apos;d imagine.  Shallow clones make mirroring harder, some servers refuse to do shallow clones from arbitrary SHAs, and incremental updates become trickier.

However, what you&apos;re looking for is implemented, albeit at a global level instead of per-recipe: https://docs.yoctoproject.org/bitbake/dev/bitbake-user-manual/bitbake-user-manual-ref-variables.html#term-BB_GIT_SHALLOW</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>96388</commentid>
    <comment_count>2</comment_count>
    <who name="Gavin">attinagaoxu</who>
    <bug_when>2023-09-08 08:47:52 +0000</bug_when>
    <thetext>(In reply to Ross Burton from comment #1)
&gt; This isn&apos;t quite as simple as you&apos;d imagine.  Shallow clones make mirroring
&gt; harder, some servers refuse to do shallow clones from arbitrary SHAs, and
&gt; incremental updates become trickier.
&gt; 
&gt; However, what you&apos;re looking for is implemented, albeit at a global level
&gt; instead of per-recipe:
&gt; https://docs.yoctoproject.org/bitbake/dev/bitbake-user-manual/bitbake-user-
&gt; manual-ref-variables.html#term-BB_GIT_SHALLOW

Thank you very much for the document.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>