githooks(5) scripts to work with repositories of Chef code.
Just copy the scripts to your repository into the .git/hooks/
directory.
Make sure that the filename conforms to one of the hooks listed in
githooks(5) and that the executable bit
has been set.
pre-commit:
Copyright (c) 2012 Greg Fitzgerald
This script is licensed under the Apache License, Version 2.0.
See http://www.apache.org/licenses/LICENSE-2.0.html for the full license text.
This is a fork from https://github.com/gregf/chef-git-hooks -- changes are:
- fix OSX compatibility and
- run foodcritic on single files.