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

Re: "fatal: git-write-tree: error building trees" from `git stash`

From
Junio C Hamano <gitster@pobox.com>
Date
Dec 27, 2012, 19:21 UTC
Message-ID
<7vlicjl2r8.fsf@alter.siamese.dyndns.org>
In-Reply-To
<1356634556.13818.136.camel@umgah.localdomain>
Alex Vandiver <alex@chmrr.net> writes:
> ... "Cannot stash while resolving conflicts" or similar would be
> more understandable to the end user than the above.

Interestingly enough, the "apply" side is protected with this one liner:

        # current index state
        c_tree=$(git write-tree) ||
                die "$(gettext "Cannot apply a stash in the middle of a merge")"

since 5fd448f (git stash: Give friendlier errors when there is nothing to apply, 2009-08-11). I would think something in line with that change on the "create" side is a welcome one.

Thanks.
Previous: Junio C Hamano
Message 6 of 6 in “"fatal: git-write-tree: error building trees" from `git stash`”
  1. Alex VandiverDec 27, 2012
  2. Junio C HamanoDec 27, 2012
  3. Alex VandiverDec 27, 2012
  4. Jeff KingDec 27, 2012
  5. Junio C HamanoDec 27, 2012
  6. Junio C HamanoDec 27, 2012

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.