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

Bug report: `git revert` on empty commit fails silently

From
ALAlistair Lynn <alistair@othernation.com>
Date
Jun 18, 2015, 15:27 UTC
Message-ID
<A18BC2A3-C9A6-4D03-B929-D821E90B812D@othernation.com>
Hello gitters
Steps to reproduce:

$ git commit --allow-empty -m ‘test’ $ git revert HEAD

The latter fails silently, leaving HEAD pointing at the commit created by the first command.
A subsequent `git commit --allow-empty` has the revert message as the default commit message when starting the editor.
Hope this is the right place for bugs.
Alistair
Next: Junio C Hamano
Message 1 of 2 in “Bug report: `git revert` on empty commit fails silently”
  1. Alistair LynnJun 18, 2015
  2. Junio C HamanoJun 19, 2015

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.