<?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>15862</bug_id>
          
          <creation_ts>2025-05-14 04:35:13 +0000</creation_ts>
          <short_desc>Fetching debianutils fails when shallow clone policy is enabled</short_desc>
          <delta_ts>2025-05-15 14:43:37 +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>oe-core other</component>
          <version>5.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>Undecided</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>0.0.0</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Khem Raj">raj.khem</reporter>
          <assigned_to name="Unassigned">unassigned</assigned_to>
          <cc>yoann.congal</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>101956</commentid>
    <comment_count>0</comment_count>
    <who name="Khem Raj">raj.khem</who>
    <bug_when>2025-05-14 04:35:13 +0000</bug_when>
    <thetext>debianutils 5.22 fails to fetch when following is added to local.conf
it works ok with without it.

BB_GIT_SHALLOW = &quot;1&quot;

# Keep only the top commit
BB_GIT_SHALLOW_DEPTH = &quot;1&quot;

# This defaults to enabled if both BB_GIT_SHALLOW and
# BB_GENERATE_MIRROR_TARBALLS are enabled
BB_GENERATE_SHALLOW_TARBALLS = &quot;1&quot;

error:
======

ERROR: debianutils-native-5.22-r0 do_fetch: Fetcher failure: Fetch command export PSEUDO_DISABLED=1; export SSH_AUTH_SOCK=&quot;/ssh-agent&quot;; export PATH=&quot;/mnt/b/yoe/master/sources/poky/scripts/native-intercept:/mnt/b/yoe/master/build/tmp/sysroots-uninative/x86_64-linux/usr/bin:/mnt/b/yoe/master/sources/poky/scripts:/mnt/b/yoe/master/build/tmp/work/x86_64-linux/debianutils-native/5.22/recipe-sysroot-native/usr/bin/x86_64-linux:/mnt/b/yoe/master/build/tmp/work/x86_64-linux/debianutils-native/5.22/recipe-sysroot-native/usr/bin:/mnt/b/yoe/master/build/tmp/work/x86_64-linux/debianutils-native/5.22/recipe-sysroot-native/usr/sbin:/mnt/b/yoe/master/build/tmp/work/x86_64-linux/debianutils-native/5.22/recipe-sysroot-native/usr/bin:/mnt/b/yoe/master/build/tmp/work/x86_64-linux/debianutils-native/5.22/recipe-sysroot-native/sbin:/mnt/b/yoe/master/build/tmp/work/x86_64-linux/debianutils-native/5.22/recipe-sysroot-native/bin:/mnt/b/yoe/master/sources/poky/bitbake/bin:/mnt/b/yoe/master/build/tmp/hosttools&quot;; export HOME=&quot;/home/build&quot;; git -c gc.autoDetach=false -c core.pager=cat -c safe.bareRepository=all -c clone.defaultRemoteName=origin fetch origin --depth 1 5.22 failed with exit code 128, output:
fatal: couldn&apos;t find remote ref 5.22

ERROR: debianutils-native-5.22-r0 do_fetch: Bitbake Fetcher Error: FetchError(&apos;Unable to fetch URL from any source.&apos;, &apos;git://salsa.debian.org/debian/debianutils.git;protocol=https;branch=master;tag=debian/5.22&apos;)
ERROR: Logfile of failure stored in: /mnt/b/yoe/master/build/tmp/work/x86_64-linux/debianutils-native/5.22/temp/log.do_fetch.579
ERROR: Task (virtual:native:/mnt/b/yoe/master/sources/poky/meta/recipes-support/debianutils/debianutils_5.22.bb:do_fetch) failed with exit code &apos;1&apos;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>101958</commentid>
    <comment_count>1</comment_count>
    <who name="Yoann Congal">yoann.congal</who>
    <bug_when>2025-05-14 16:55:48 +0000</bug_when>
    <thetext>Maybe fixed by:
[PATCH] fetch2/git: fix shallow clone for tag containing slash
https://lists.openembedded.org/g/bitbake-devel/message/17605

Related test:
[PATCH] lib/bb/tests/fetch: add a test case to ensure git shallow fetch works for tag containing slash
https://lists.openembedded.org/g/bitbake-devel/message/17608</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>101962</commentid>
    <comment_count>2</comment_count>
    <who name="Yoann Congal">yoann.congal</who>
    <bug_when>2025-05-15 14:43:37 +0000</bug_when>
    <thetext>Fix merged: fetch2/git: fix shallow clone for tag containing slash
https://git.openembedded.org/bitbake/commit/?id=c6d6999f1ed01e7445b8f177a888038edacf555c</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>