Community
Participate
Working Groups
I am unable to run the git pre-commit from egit (git)staging.kindly let we know what are the steps need to configure.
If a pre-commit hook script is installed in the repository's .git/hooks directory it should be executed when a new commit is created. But FS#runHookIfPresent [1] is only implemented for Posix [2] and Cygwin [3] but not for Windows [4] that's why hooks aren't run on Windows. Contributions are welcome :-) [1] https://git.eclipse.org/r/plugins/gitiles/jgit/jgit/+/refs/heads/master/org.eclipse.jgit/src/org/eclipse/jgit/util/FS.java#1902 [2] https://git.eclipse.org/r/plugins/gitiles/jgit/jgit/+/refs/heads/master/org.eclipse.jgit/src/org/eclipse/jgit/util/FS_POSIX.java#269 [3] https://git.eclipse.org/r/plugins/gitiles/jgit/jgit/+/refs/heads/master/org.eclipse.jgit/src/org/eclipse/jgit/util/FS_Win32_Cygwin.java#139 [4] https://git.eclipse.org/r/plugins/gitiles/jgit/jgit/+/refs/heads/master/org.eclipse.jgit/src/org/eclipse/jgit/util/FS_Win32.java#36