Bug 500266 - Hooks code does not respect core.hooksPath
Summary: Hooks code does not respect core.hooksPath
Status: RESOLVED FIXED
Alias: None
Product: JGit
Classification: Technology
Component: JGit (show other bugs)
Version: 4.4   Edit
Hardware: PC Windows 10
: P3 enhancement with 3 votes (vote)
Target Milestone: 5.6   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
: 547618 550954 (view as bug list)
Depends on:
Blocks:
 
Reported: 2016-08-25 07:02 EDT by PGR Capital CLA
Modified: 2019-10-22 02:43 EDT (History)
5 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description PGR Capital CLA 2016-08-25 07:02:12 EDT
I have project-specific pre-commit hooks working, running from the $GIT_DIR/hooks (ie project/.git/hooks) directory.

However, if I specify the Git configuration variable core.hooksPath (either in User Settings or System Settings), its value is ignored, and Egit continues to look only in the project's own .git/hooks directory instead.
Comment 1 Matthias Sohn CLA 2016-08-26 17:53:51 EDT
core.hooksPath isn't yet supported by JGit

Maybe you want to contribute that ?
Comment 2 Thomas Wolf CLA 2019-05-24 07:20:58 EDT
*** Bug 547618 has been marked as a duplicate of this bug. ***
Comment 3 Thomas Wolf CLA 2019-09-20 10:40:21 EDT
*** Bug 550954 has been marked as a duplicate of this bug. ***
Comment 4 Eclipse Genie CLA 2019-09-20 10:42:42 EDT
New Gerrit change created: https://git.eclipse.org/r/149912
Comment 5 Eclipse Genie CLA 2019-10-21 22:20:53 EDT
Gerrit change https://git.eclipse.org/r/149912 was merged to [master].
Commit: http://git.eclipse.org/c/jgit/jgit.git/commit/?id=385b503ae8635ddb4233c9ae1f2d472a51609162
Comment 6 Thomas Wolf CLA 2019-10-22 02:43:57 EDT
core.hooksPath is implemented now, but note that calling hooks on Windows is not fully implemented yet (only for Cygwin). See bug 537036 for that.