Permalink
Browse files

updates to README.md

  • Loading branch information...
Jacob Sohl
Jacob Sohl committed Jul 23, 2015
1 parent 9fb0d04 commit df8d8253d53c82fcb6b9ec5631fdeafe224d143a
Showing with 22 additions and 0 deletions.
  1. +1 −0 .gitignore
  2. +21 −0 README.md
View
@@ -0,0 +1 @@
.project
View
@@ -64,3 +64,24 @@ deploy-git-hook
3) to install only the pre-commit and pre-receive hook to foobar git repo:
deploy-git-hook -d /path/to/foobar -c -r
In a wrapper
===============
You can call from your own custom pre-commit. This allows you to combine these with your own checks
For example, if you've cloned this repo to ~/.puppet-git-hooks
The .git/hooks/pre-commit with your puppet code might look like this
```bash
#!bin/bash
# my_other_checks
# puppet-git-hooks
if [ -e ~/.puppet-git-hooks/pre-commit ]; then
~/.puppet-git-hooks/pre-commit
fi
```

0 comments on commit df8d825

Please sign in to comment.