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.

Bug 268448

Summary: NetBeans ignores git hooks
Product: versioncontrol Reporter: Christian Lenz <chrizzly>
Component: GitAssignee: Ondrej Vrabec <ovrabec>
Status: CLOSED INVALID    
Severity: normal CC: git
Priority: P3    
Version: 8.2   
Hardware: PC   
OS: Other   
Issue Type: DEFECT Exception Reporter:

Description Christian Lenz 2016-10-10 12:48:54 UTC
I use a npm package called pre-commit (https://github.com/observing/pre-commit). You only have to add "pre-commit": ["test"] into the package.json and if you try to commit on the console, it will automatically execute the test script which runs "npm run tests".

It works really good on the console, while git commit -m "Test with pre-commits." but not with NetBeans. NetBeans seams to ignore the hook after using the commit dialog in NetBeans. So for hooks, I can't use the git commit integration in NetBeans anymore.


Regards

Chris
Comment 1 Christian Lenz 2018-10-25 15:35:09 UTC
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.