This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
Product Version: NetBeans IDE Dev (Build 201602080002) Java: 1.8.0_60; Java HotSpot(TM) 64-Bit Server VM 25.60-b23 Runtime: Java(TM) SE Runtime Environment 1.8.0_60-b27 System: Windows 8.1 version 6.3 running on amd64; Cp1250; pl_PL (nb) Git hooks doesn't work when invoking an action from NetBeans (for example commit). They work for example in IntelliJ IDEA.
Commit hooks are very needed, because you can commit from the IDE but it will completely ignore the hooks. If you run the tests for example, before you commit, then the commit should break if you have broken tests.
They started 7 Years ago to implement it, but they didn't finished yet: https://github.com/Chris2011/netbeans-releases/blob/25f8981f8bcf1815349a37ca6888e2ec7a3ad820/versioning.util/src/org/netbeans/modules/versioning/hooks/GitHook.java#L54 here is the source where it will be used: https://github.com/Chris2011/netbeans-releases/blob/25f8981f8bcf1815349a37ca6888e2ec7a3ad820/git/src/org/netbeans/modules/git/ui/commit/CommitAction.java#L323 Only to let you know.
There are a variety of git extensions such as Gerrit that rely upon hooks. Please consider reprioritizing this effort.
*** This bug has been marked as a duplicate of bug 250776 ***
I will close it, because it will handled now at the JIRA board: https://issues.apache.org/jira/browse/NETBEANS-775. Please discuss it there for further information.