<?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>972</bug_id>
          
          <creation_ts>2011-04-12 08:09:30 +0000</creation_ts>
          <short_desc>tag= does not work as expected for git URIs</short_desc>
          <delta_ts>2011-05-13 11:14:45 +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>1.0</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>High</priority>
          <bug_severity>major</bug_severity>
          <target_milestone>1.0 PointRelease</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Paul Eggleton">bluelightning</reporter>
          <assigned_to name="Ke Yu">ke.yu</assigned_to>
          <cc>poky.bs.watcher</cc>
    
    <cc>poky.watcher</cc>
    
    <cc>sgw</cc>
          
          
          <cf_os>---</cf_os>
          <cf_regression_type>---</cf_regression_type>
          
          <cf_docchange>---</cf_docchange>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>13228</commentid>
    <comment_count>0</comment_count>
    <who name="Paul Eggleton">bluelightning</who>
    <bug_when>2011-04-12 08:09:30 +0000</bug_when>
    <thetext>If you specify a tag which is not a sha1 hash in a git URI then it will be ignored; when it unpacks you get master instead.

Example URI:

SRC_URI = &quot;git://git.ipxe.org/ipxe.git;protocol=git;tag=v${PV}&quot;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>13359</commentid>
    <comment_count>1</comment_count>
    <who name="Ke Yu">ke.yu</who>
    <bug_when>2011-04-19 21:39:34 +0000</bug_when>
    <thetext>The culprit is here:
bitbake/lib/bb/fetch2/git.py:
&quot;
        for name in ud.names:
            # Ensure anything that doesn&apos;t look like a sha256 checksum/revision is translated into one
            if not ud.revisions[name] or len(ud.revisions[name]) != 40  or (False in [c in &quot;abcdef0123456789&quot; for c in ud.revisions[name]]):
                ud.revisions[name] = self.latest_revision(ud.url, ud, d, name)
&quot;

when revision is tag like v${PV}, fetcher will consider it as invalid sha256 checksum, and replace it with master laster revision.

Need to think about the better way to handle this case</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>13574</commentid>
    <comment_count>2</comment_count>
    <who name="Saul Wold">sgw</who>
    <bug_when>2011-05-04 16:42:52 +0000</bug_when>
    <thetext>http://git.yoctoproject.org/cgit/cgit.cgi/poky/commit/?id=a2030c8d1a58c79428cba80158982aea4d2d9f6d</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>13813</commentid>
    <comment_count>3</comment_count>
    <who name="Saul Wold">sgw</who>
    <bug_when>2011-05-13 11:14:45 +0000</bug_when>
    <thetext>Bernard

http://git.yoctoproject.org/cgit/cgit.cgi/poky/commit/?id=0137a98b28f0810e3361fc2ef86e88fca22def2d</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>