overcommit deletes all files if we try to commit without adding the files
Steps to reproduce:
1. Change a file
2. Do not `git add`
3. Try to commit
git commit -m "commit message"
4. Notice all the files have been deleted and staged
The issue can be reproduced on this repository:
https://github.com/deepakmahakale/overcommit_issue