projects
/
mirror
/
dsa-puppet.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Try to make use of the extralist in the components file for static-update-component too
[mirror/dsa-puppet.git]
/
tools
/
git-hooks
/
pre-commit
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
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
if [ $? -ne 0 ] || [ -n "${output}" ]; then
echo '** Syntax check failed:' >&2
echo "${output}" >&2