Receiving exit status 128 on install
When I attempt to run lefthook install inside a repo directory, I am getting exit status 128.
When I ran this on another machine, it worked without issue.
That is weird. No idea what is going on.
Can you please tell us: your OS, lefthook version, how you have installed lefthook, and also output of git rev-parse --git-path hooks from within repository on both machines?
On the failing machine:
- OS: Ubuntu 14.04.5
- Lefthook version: 0.7.7
- Installation method: I have tested this using both a direct binary download, as well as installing the .deb package for both 0.7.7 and 0.7.6
fatal: ambiguous argument 'hooks': unknown revision or path not in the working tree.
Use '--' to separate paths from revisions, like this:
'git <command> [<revision>...] -- [<file>...]'
On the succeeding machine:
- OS: Ubuntu 18.04
- Lefthook version: 0.7.7
- Installation method: direct binary download
.git/hooksis the output from the command given.
OS: Ubuntu 14.04.5
fatal: ambiguous argument 'hooks': unknown revision or path not in the working tree.
Jeez, seems like your git is very old (and your Ubuntu reached its End-of-life at least 2 years ago).
We rely on commands like git rev-parse --git-path hooks internally, if they are not implemented then Lefthook won't work, sorry.
This issue looks stale. I guess that upgrading git helped. Closing it.
Feel free to open a new issue or comment here if something doesn't work still!