Bug report: `git revert` on empty commit fails silently
- From
- Alistair 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