git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* git-write-error with cherry-pick -n usages
@ 2008-01-11  5:48 Björn Steinbrink
  2008-01-11  6:49 ` Junio C Hamano
  0 siblings, 1 reply; 3+ messages in thread
From: Björn Steinbrink @ 2008-01-11  5:48 UTC (permalink / raw)
  To: git

[-- Attachment #1: Type: text/plain, Size: 506 bytes --]

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

[-- Attachment #2: test.sh --]
[-- Type: application/x-sh, Size: 317 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2008-02-03  9:11 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-01-11  5:48 git-write-error with cherry-pick -n usages Björn Steinbrink
2008-01-11  6:49 ` Junio C Hamano
2008-02-03  9:11   ` Björn Steinbrink

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).