Git pre-commit hook doesn't work in Geppetto

50 views
Skip to first unread message

tyon

unread,
Mar 11, 2015, 5:01:23 PM3/11/15
to puppet-...@googlegroups.com
I'm using Geppetto 4.3.1 with Git. I have pre-commit hook to catch syntax errors from http://projects.puppetlabs.com/projects/1/wiki/puppet_version_control (Git Pre-Commit Hook).

It works fine when I'm using the cli. It doesn't seem to work in Geppetto. I can make a commit with a syntax error in the Puppet module. I'm very new in Geppetto. Is it how supposed to be or am I missing something here?

Thank you.    

Henrik Lindberg

unread,
Mar 11, 2015, 9:07:36 PM3/11/15
to puppet-...@googlegroups.com
You are not missing something. The feature is not available yet in the
JGit that we use. See this eclipse bug:
https://bugs.eclipse.org/bugs/show_bug.cgi?id=299315

Looks like someone submitted a patch for it. Once it is released it will
be picked up and included in Geppetto.


In order to trigger the pre-commit hook, you need to drop to the command
line when comitting. You can do the rest of the git work within Geppetto.

Regards
- henrik


--

Visit my Blog "Puppet on the Edge"
http://puppet-on-the-edge.blogspot.se/

tyon

unread,
Mar 12, 2015, 12:08:29 PM3/12/15
to puppet-...@googlegroups.com
Henrik, thank you for your answer! It explains everything. I'm looking forward when this feature will be available. 
Reply all
Reply to author
Forward
0 new messages