<?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>9368</bug_id>
          
          <creation_ts>2016-04-01 03:11:12 +0000</creation_ts>
          <short_desc>devtool: sdk-update: metadata update can result in conflict resolution</short_desc>
          <delta_ts>2016-04-18 16:40:31 +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>devtools / tool chain</component>
          <version>2.1</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>Medium+</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>2.1 M4</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Paul Eggleton">bluelightning</reporter>
          <assigned_to name="Stephano Cetola">stephano</assigned_to>
          <cc>meta.mr.watcher</cc>
    
    <cc>meta.watcher</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>60645</commentid>
    <comment_count>0</comment_count>
    <who name="Paul Eggleton">bluelightning</who>
    <bug_when>2016-04-01 03:11:12 +0000</bug_when>
    <thetext>At the moment as part of devtool sdk-update we are performing a &quot;git pull&quot; on the metadata repository and that can be problematic - you may not get a fast-forward merge since the repository might have been re-created on the server end. We should probably do the following:

1) Use git status --porcelain to check if the user has made any changes and error out if so

2) Use &quot;git fetch&quot; followed by &quot;git reset --hard&quot; instead of &quot;git pull&quot; so that we avoid any potential conflicts.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>60906</commentid>
    <comment_count>1</comment_count>
    <who name="Stephano Cetola">stephano</who>
    <bug_when>2016-04-07 13:56:47 +0000</bug_when>
    <thetext>Regarding Paul&apos;s comment, I&apos;m going to be changing the way that the esdk is generated so that layers repo is already created and a commit only needs to be made by oe-publish-sdk.

--
Paul Eggleton: thinking about it though if we&apos;re to take better advantage of being able to pull down updates we probably need to initialise the repo when we create the SDK, and then as part of publishing we set it up as a commit in an existing repo if one exists
--

Also note that we should check to be sure that a git user exists in .gitconifg before we try to make a commit, or it will fail.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>