<?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>13214</bug_id>
          
          <creation_ts>2019-03-01 11:59:42 +0000</creation_ts>
          <short_desc>Bitbake gitsm.py with submodule in submodule fails (Poky 20.0.1)</short_desc>
          <delta_ts>2019-03-27 05:10:44 +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>All</rep_platform>
          <op_sys>Multiple</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard>Backport 2.5 and 2.6</status_whiteboard>
          <keywords></keywords>
          <priority>Medium+</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>2.6.2</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Henrik Riomar">henrik.riomar</reporter>
          <assigned_to name="Armin Kuster">akuster</assigned_to>
          <cc>kai.ruhnau</cc>
    
    <cc>poky.bs.watcher</cc>
    
    <cc>poky.watcher</cc>
          
          
          <cf_os>---</cf_os>
          <cf_regression_type>Regression (Used to work)</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>83167</commentid>
    <comment_count>0</comment_count>
    <who name="Henrik Riomar">henrik.riomar</who>
    <bug_when>2019-03-01 11:59:42 +0000</bug_when>
    <thetext>gitsm included with poky Thud 20.0.1 fails when a bb file is using gitsm to fetch the source git-repo, and the git-repo contains submodules within submodules.

Example submodule that can be used for reproducing it:
 https://github.com/google/fonts
(put that as a submodule in the git-repo cloned with gitsm.)

Error seen:

submodule update --recursive --no-fetch failed with exit code 1, output:
....
Submodule path &apos;external/google-fonts&apos;: checked out &apos;6177da92bf853e779b0e46ec9f0dd301b2726641&apos;
....

warning: core.bare and core.worktree do not make sense
fatal: unable to set up work tree using invalid config
Unable to checkout &apos;96620a77aabf605d7c0d89786f4e1f31567bbd78&apos; in submodule path &apos;external/google-fonts/tools/util/GlyphsInfo&apos;
Failed to recurse into submodule path &apos;external/google-fonts&apos;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>83168</commentid>
    <comment_count>1</comment_count>
    <who name="Henrik Riomar">henrik.riomar</who>
    <bug_when>2019-03-01 12:00:18 +0000</bug_when>
    <thetext>Worked fine in Morty.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>83174</commentid>
    <comment_count>2</comment_count>
    <who name="Richard Purdie">richard.purdie</who>
    <bug_when>2019-03-02 22:52:12 +0000</bug_when>
    <thetext>Could you check if master works please? This is likely a case of us needing to backport a lot of the fixes in master. We&apos;re a little reluctant due to the shear number of patches needing backport but knowing master works for you may help influence what we do.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>83179</commentid>
    <comment_count>3</comment_count>
    <who name="Henrik Riomar">henrik.riomar</who>
    <bug_when>2019-03-04 12:01:42 +0000</bug_when>
    <thetext>yes do_fetch with gitsm works fine if add bitbake patches (79 missing patches in the Thud branch) from poky master.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>83181</commentid>
    <comment_count>4</comment_count>
    <who name="Armin Kuster">akuster</who>
    <bug_when>2019-03-04 16:17:46 +0000</bug_when>
    <thetext>can I get a simple test case?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>83183</commentid>
    <comment_count>5</comment_count>
    <who name="Henrik Riomar">henrik.riomar</who>
    <bug_when>2019-03-04 19:09:22 +0000</bug_when>
    <thetext>simple test: https://github.com/HRio/gitsm-problem</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>83299</commentid>
    <comment_count>6</comment_count>
    <who name="Armin Kuster">akuster</who>
    <bug_when>2019-03-21 14:34:32 +0000</bug_when>
    <thetext>*** Bug 13220 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>83326</commentid>
    <comment_count>7</comment_count>
    <who name="Armin Kuster">akuster</who>
    <bug_when>2019-03-27 05:10:44 +0000</bug_when>
    <thetext>in thud proper.

http://git.yoctoproject.org/cgit/cgit.cgi/poky/commit/?h=thud&amp;id=7a28e60171c5e04c841c331be651536200635c45
to
http://git.yoctoproject.org
/cgit/cgit.cgi/poky/commit/?h=thud&amp;id=d5a6da8b3d1a8639f945586828ecd4d8481f5100</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>