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

git-write-error with cherry-pick -n usages

From
Björn Steinbrink <b.steinbrink@gmx.de>
Date
Jan 11, 2008, 05:48 UTC
Message-ID
<20080111054811.GA7476@atjola.homenet>
Hi,

when you cherry-pick -n a commit that has changes to a file missing in the current tree, that file will be added as "Unmerged". A subsequent cherry-pick that tries to pick a commit that has changes to that file will then fail with:

fatal: git-write-tree: error building trees
I've attached a small shell script to easily reproduce that.
git version 1.5.4.rc2.84.gf85fd

That specific use of cherry-pick might be an user error, but, if possible, git should give a less cryptic error message.

Björn
Next: Junio C Hamano
Message 1 of 3 in “git-write-error with cherry-pick -n usages”
  1. Björn SteinbrinkJan 11, 2008
  2. Junio C HamanoJan 11, 2008
  3. Björn SteinbrinkFeb 3, 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.