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:
14060b9
)
this means an update to bpo puppet on your laptop
author
Stephen Gran
<steve@lobefin.net>
Wed, 16 May 2012 16:48:33 +0000
(17:48 +0100)
committer
Stephen Gran
<steve@lobefin.net>
Wed, 16 May 2012 16:48:33 +0000
(17:48 +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
9d70e36
..
590554c
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
apply --noop
${pp} 2>&1)
+ local output=$(puppet
parser validate
${pp} 2>&1)
if [ $? -ne 0 ] || [ -n "${output}" ]; then
echo '** Syntax check failed:' >&2
echo "${output}" >&2