Re: Possible bug in Git

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Avery Pennarun
Date: Thursday, April 15, 2010 - 5:13 pm

On Thu, Apr 15, 2010 at 8:06 PM, Avery Pennarun <apenwarr@gmail.com> wrote:

 mkdir testy
 cd testy
 git init
 cp /etc/profile .
 git add profile
 git commit -m root
 git checkout -b a master
 cat /etc/profile >>profile
 git commit -a -m test1
 git checkout -b b master
 cat /etc/profile | tr A-Za-z a-zA-Z >profile
 git commit -a -m test1b
 git merge a
   # produces a conflict
 true >profile   # blank the file
 git commit -a -m resolved
 git show HEAD:profile
   # no output

Note that if you instead replace the file with a nonempty (but
different) file, you get something appropriate as the output.

Have fun,

Avery
--
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Possible bug in Git, David Martínez Martí, (Thu Apr 15, 3:47 am)
[PATCH] combined diff: correctly handle truncated file, Thomas Rast, (Thu Apr 15, 5:59 am)
Re: Possible bug in Git, Avery Pennarun, (Thu Apr 15, 4:45 pm)
Re: Possible bug in Git, Junio C Hamano, (Thu Apr 15, 5:01 pm)
Re: Possible bug in Git, Avery Pennarun, (Thu Apr 15, 5:06 pm)
Re: Possible bug in Git, Avery Pennarun, (Thu Apr 15, 5:13 pm)
Re: Possible bug in Git, Jay Soffian, (Thu Apr 15, 5:38 pm)
Re: Possible bug in Git, Avery Pennarun, (Thu Apr 15, 5:45 pm)
Re: Possible bug in Git, Linus Torvalds, (Fri Apr 16, 8:53 am)
Re: Possible bug in Git, Thomas Rast, (Fri Apr 16, 9:39 am)
Re: Possible bug in Git, Junio C Hamano, (Fri Apr 16, 9:56 am)
Re: Possible bug in Git, Thomas Rast, (Fri Apr 16, 10:00 am)