I have a git repo with a pre-commit hook that intentionally fails 100% of the time.
cat .git/hooks/pre-commit
> exit 1
If I try to commit through the command line, it fails as expected. However, if I commit from egit, the hook is ignored and the changes get committed.
Does egit/jgit not recognize hooks yet? Is there a workaround for this?
Thanks in advance!
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…