projects
/
mirror
/
dsa-puppet.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3d0358a
)
update hook for storeconfigs
author
Stephen Gran
<steve@lobefin.net>
Sun, 24 Jun 2012 12:10:44 +0000
(13:10 +0100)
committer
Stephen Gran
<steve@lobefin.net>
Sun, 24 Jun 2012 12:10:44 +0000
(13:10 +0100)
Signed-off-by: Stephen Gran <steve@lobefin.net>
tools/git-hooks/pre-commit
patch
|
blob
|
history
diff --git
a/tools/git-hooks/pre-commit
b/tools/git-hooks/pre-commit
index
590554c
..
243f062
100755
(executable)
--- a/
tools/git-hooks/pre-commit
+++ b/
tools/git-hooks/pre-commit
@@
-21,7
+21,7
@@
check_puppet_manifest () {
git cat-file blob :0:${file} | sed 's/^import .*/#&/' >${pp}
trap "rm -f ${pp}" RETURN
- local output=$(puppet parser validate ${pp} 2>&1)
+ local output=$(puppet parser validate
--storeconfigs true
${pp} 2>&1)
if [ $? -ne 0 ] || [ -n "${output}" ]; then
echo '** Syntax check failed:' >&2
echo "${output}" >&2