hook is not working eclipse egit client

一个人想着一个人 提交于 2019-11-26 22:26:58

问题


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

回答1:


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.



来源:https://stackoverflow.com/questions/32440968/hook-is-not-working-eclipse-egit-client

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!