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

Re: A little mystery - crash caused by empty commit message.

From
Johannes Sixt <j.sixt@viscovery.net>
Date
Feb 10, 2009, 11:46 UTC
Message-ID
<4991691E.6010808@viscovery.net>
In-Reply-To
<20090210113234.GE12089@coredump.intra.peff.net>
Jeff King schrieb:
> It _is_ generally hard to get an empty commit message using "git
> commit". But it's possible there is a bug in cherry-pick, rebase, or
> some ohter low-level tool that accidentally erased your message
> as the commit was moved.

Since this is on Windows, chances are that this is an encoding issue. If you have non-ASCII in the commit message, but i18n.commitEncoding is unset, then you can introduce invalid UTF8 sequences easily. This could confuse one of the pipelines (rebase, am, cherry-pick, etc).

You should set
	git config i18n.commitencoding cp1252
(or whatever is appropriate for you locale). I even have
	git config i18n.logoutputencoding cp850

so that I see correct umlauts if I happen to run git log without a pager in CMD ;) (I rarely do that, though.)

-- Hannes
Previous: Jeff KingNext: Tor Arvid Lund
Message 3 of 6 in “A little mystery - crash caused by empty commit message.”
  1. Tor Arvid LundFeb 10, 2009
  2. Jeff KingFeb 10, 2009
  3. Johannes SixtFeb 10, 2009
  4. Tor Arvid LundFeb 10, 2009
  5. Jeff KingFeb 10, 2009
  6. Tor Arvid LundFeb 16, 2009

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.