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

From: Alistair Lynn <hidden>
Date: 2016-06-15 23:05:22

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
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help