<?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>1838</bug_id>
          
          <creation_ts>2011-12-15 09:24:34 +0000</creation_ts>
          <short_desc>git merge failures in .scc files happen silently</short_desc>
          <delta_ts>2012-01-10 07:28:57 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>6</classification_id>
          <classification>Yocto Project Subprojects</classification>
          <product>Kernel</product>
          <component>kernel-configuration</component>
          <version>1.1-beta</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>Fixed in the kern-tools repository. Will batch in next consolidated pull request (Dec 21, 2012)</status_whiteboard>
          <keywords></keywords>
          <priority>Medium</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>1.2 M2</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Tom Zanussi">tom.zanussi</reporter>
          <assigned_to name="Bruce Ashfield">bruce.ashfield</assigned_to>
          <cc>dvhart</cc>
    
    <cc>sgw</cc>
    
    <cc>yp.kernel.watcher</cc>
    
    <cc>yp.watcher</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>17669</commentid>
    <comment_count>0</comment_count>
    <who name="Tom Zanussi">tom.zanussi</who>
    <bug_when>2011-12-15 09:24:34 +0000</bug_when>
    <thetext>If a &apos;git merge&apos; in an .scc file fails, there&apos;s no indication to the user as to why it failed.  In a recent case, it took awhile to figure out why the emgd module wasn&apos;t being built on a system that didn&apos;t have git configured properly, which was causing a merge failure that ended up with an invalid config option message and no emgd module in the image.  The reason for the failure was that git hadn&apos;t been configured properly, but there wasn&apos;t anything in all the intermediate config or log files that indicated that the merge had failed:

yocto/egmd/tmp/work/crownbay-poky-linux/linux-yocto-3.0.4+git1+d05450e4aef02c1b7137398ab3a9f8f96da74f52_1+2247da9131ea7e46ed4766a69bb1353dba22f873-r2/linux$
git merge yocto/emgd

*** Please tell me who you are.

Run

  git config --global user.email &quot;you@example.com&quot;
  git config --global user.name &quot;Your Name&quot;

to set your account&apos;s default identity.
Omit --global to set the identity only in this repository.

fatal: empty ident  &lt;.(none)&gt; not allowed</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>17673</commentid>
    <comment_count>1</comment_count>
    <who name="Bruce Ashfield">bruce.ashfield</who>
    <bug_when>2011-12-15 10:50:51 +0000</bug_when>
    <thetext>I already have a case for this .. somewhere. I&apos;ll find it and dup this to it.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>17782</commentid>
    <comment_count>2</comment_count>
    <who name="Bruce Ashfield">bruce.ashfield</who>
    <bug_when>2011-12-21 08:53:00 +0000</bug_when>
    <thetext>I couldn&apos;t find the duplicate, it wasn&apos;t entirely obvious, since it was a subpart of a case that was about build failures on the autobuilder.

So we can use this case to address this issue.

Out of curiosity, can anyone else make this fail like this on an unconfigured
box ? I wanted to test my fix by hand, but I&apos;m not seeing failures.

 &gt; git commit -m &quot;test commit with unconfigured git&quot; Makefile
[yocto/standard/mti-malta32-be 5ce556b] test commit with unconfigured git
 Committer: Bruce Ashfield &lt;bruce@yow-bashfiel-l1.(none)&gt;
Your name and email address were configured automatically based
on your username and hostname. Please check that they are accurate.
You can suppress this message by setting them explicitly:

    git config --global user.name &quot;Your Name&quot;
    git config --global user.email you@example.com

After doing this, you may fix the identity used for this commit with:

    git commit --amend --reset-author

 1 files changed, 1 insertions(+), 1 deletions(-)
yow-bashfiel-l1 [/home/bruc...8-r2/linux]&gt; echo $?
0
&gt;

&gt; git merge yocto/emgd
Merge made by the &apos;recursive&apos; strategy.
 drivers/gpu/drm/Kconfig                            |    9 +
[snip]
&gt; echo $?
130

So even in the second case, the merge happened, although the return code
is non-zero.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>17783</commentid>
    <comment_count>3</comment_count>
    <who name="Tom Zanussi">tom.zanussi</who>
    <bug_when>2011-12-21 09:00:42 +0000</bug_when>
    <thetext>Must be a git version difference - your version seems OK with using the username and hostname it guessed it found, while the op&apos;s version asks &apos;*** Please tell me who you are.&apos;.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>17784</commentid>
    <comment_count>4</comment_count>
    <who name="Bruce Ashfield">bruce.ashfield</who>
    <bug_when>2011-12-21 09:03:12 +0000</bug_when>
    <thetext>Indeed. I was running my host version. I&apos;ll try git-native, and see
what I can get.

I can fix this, I&apos;d just rather be able to test it fully!</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>18046</commentid>
    <comment_count>5</comment_count>
    <who name="Bruce Ashfield">bruce.ashfield</who>
    <bug_when>2012-01-10 07:28:57 +0000</bug_when>
    <thetext>This has been merged.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>