Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
587 views
in Technique[技术] by (71.8m points)

hook is not working eclipse egit client

I am trying to trigger a hook file at the time of commit, but this is not working in EGIT. The same hook file is being executed If I use git bash or tortoisegit. Am I missing anything in the installation? How to fix this. I appreciate your help. For your information, below are the details of my eclipse and eclipse git plugin[EGIT]

Eclipse IDE for Java Developers
Version: Mars Release (4.5.0)
Build id: 20150621-1200

and Eclipse EGit version:4.0.0.201506090130-r
See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)

Recent versions of EGit (4.x) support commit hooks. If you are on Mars you should already have it, if not try updating from EGit update site.

In order to run them on Windows you need unix-like bash. You can try with Git for Windows, Cygwin or Msys2. Put the folder with sh.exe on your path and EGit should be able to run your hooks.


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...