<?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>9075</bug_id>
          
          <creation_ts>2016-02-08 15:11:22 +0000</creation_ts>
          <short_desc>buildhistory-diff does not work if the build history is stored in a Git submodule</short_desc>
          <delta_ts>2016-05-19 15:03:49 +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>Scripts and Tools</component>
          <version>2.1</version>
          <rep_platform>x86</rep_platform>
          <op_sys>Multiple</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>WORKSFORME</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>Medium</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>2.2</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter>ulfalizer</reporter>
          <assigned_to>ulfalizer</assigned_to>
          <cc>eduard.bartosh</cc>
    
    <cc>ross.burton</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>58732</commentid>
    <comment_count>0</comment_count>
    <who name="">ulfalizer</who>
    <bug_when>2016-02-08 15:11:22 +0000</bug_when>
    <thetext>...because gitdb returns a Repo instance corresponding to the _main_ repository instead of the submodule if you give it a submodule path.

Assuming buildhistory/ is a Git submodule, a simple way to verify this is running

  $ poky/scripts/buildhistory-diff &lt;a revision from the submodule&gt;

, which gives a &apos;Specified git revision &lt;rev&gt; is not valid&apos; error.

On the other hand,

  $ poky/scripts/buildhistory-diff &lt;a revision from the main repository&gt;

works, but doesn&apos;t print any useful info as the main repository is not a buildhistory repo.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>60584</commentid>
    <comment_count>1</comment_count>
    <who name="Ed Bartosh">eduard.bartosh</who>
    <bug_when>2016-03-31 11:27:03 +0000</bug_when>
    <thetext>I can&apos;t reproduce this.

Here is what I tried:

1. add buildhistory as a submodule:
git submodule add file:///home/ed/git/yocto/poky/build/buildhistory bh

2. run buildhistory-diff for it:
$ buildhistory-diff -p bh -a HEAD~6
images/qemux86_64/glibc/core-image-minimal: DISTRO_VERSION changed from &quot;2.0+snapshot-20160330&quot; to &quot;2.0+snapshot-20160331&quot;

3. run buildhistory-diff for build/buildhistory to compare the output:
$ buildhistory-diff -a HEAD~6
images/qemux86_64/glibc/core-image-minimal: DISTRO_VERSION changed from &quot;2.0+snapshot-20160330&quot; to &quot;2.0+snapshot-20160331&quot;

As you can see the output is the same in both cases.
Please, provide details of your setup and instructions how to reproduce the issue. Thanks.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>62328</commentid>
    <comment_count>2</comment_count>
    <who name="Ed Bartosh">eduard.bartosh</who>
    <bug_when>2016-05-19 15:02:17 +0000</bug_when>
    <thetext>Closing as worksforme. Feel free to re-open and provide more details.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>