0

Environment: EGit 4.0.1.201506240215-r on Windows 7

I can commit with Git bash and the pre-commit hook is invoked, but when I try to commit in EGit, the pre-commit hook is not invoked.

Rüdiger Herrmann
  • 20,512
  • 11
  • 62
  • 79

1 Answers1

0

GIT hooks are nothing but scripts which are to be executed by /bin/sh. Which you cannot do since you are running on Windows OS and you don't have sh.exe.

Install Cygwin

Add the cygwin_root/bin to your PATH

Make sure you install GIT during the cygwin installation(Since git hook scripts will execute git commands)

Hope this will help

Vamsi Ravi
  • 1,196
  • 8
  • 26