kazazor / git-pre-commit

A pre-commit hook that ignores all the unstagged changes while performing the pre-commit command you wrote (Using Shell, Gulp, Grunt etc..)
https://www.npmjs.com/package/git-pre-commit
MIT License
18 stars 5 forks source link

Error when trying to commit an empty repository that was just created #8

Closed kazazor closed 8 years ago

kazazor commented 8 years ago
> git commit -m "First commit ever!!"
git commit -m "First commit evergs"
fatal: bad revision 'HEAD'
fatal: bad revision 'HEAD'
fatal: Needed a single revision
You do not have the initial commit yet
[14:16:20] Warning! Trying to print an undefined message
kazazor commented 8 years ago

Fixed on commit: https://github.com/kazazor/git-pre-commit/commit/c9f625cda67d71bd3902c3fbeea7943e025d7166