git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: [BUG] fatal error during merge

From
AMAnders Melchiorsen <mail@cup.kalibalik.dk>
Date
Nov 13, 2008, 23:34 UTC
Message-ID
<48332.N1gUGH5fRhE=.1226619243.squirrel@webmail.hotelhot.dk>
In-Reply-To
<20081113230932.GA8552@blimp.localdomain>
Alex Riesen wrote:
> Well, the case is a bit unfair: all files have the same SHA-1!

Here is an updated test, where all files have different SHA-1. It still fails.

Your patch got rid of the errors and it commits the merged tree. But the working tree is not updated correctly, so the moved file disappears.

Cheers, Anders.

mkdir am-merge-fail cd am-merge-fail git init

mkdir before yes | head -n100 >before/100 touch after git add before/100 after git commit -minitial git branch parallel

git rm before/100 after mkdir after yes | head -n99 >after/99 git add after/99 git commit -mmove

git checkout parallel echo "Just to cause a non-ff" >other git add other git commit -mparallel

git merge master
Previous: Alex RiesenNext: Junio C Hamano
Message 11 of 14 in “[BUG] fatal error during merge”
  1. Anders MelchiorsenNov 13, 2008
  2. Samuel TardieuNov 13, 2008
  3. SZEDER GáborNov 13, 2008
  4. Anders MelchiorsenNov 13, 2008
  5. Samuel TardieuNov 13, 2008
  6. SZEDER GáborNov 13, 2008
  7. Anders MelchiorsenNov 13, 2008
  8. SZEDER GáborNov 13, 2008
  9. Anders MelchiorsenNov 13, 2008
  10. Alex RiesenNov 13, 2008
  11. Anders MelchiorsenNov 13, 2008
  12. Junio C HamanoNov 14, 2008
  13. Alex RiesenNov 14, 2008
  14. Anders MelchiorsenNov 14, 2008

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.