X-Git-Url: https://git.adam-barratt.org.uk/?a=blobdiff_plain;f=tools%2Fgit-hooks%2Fpre-commit;fp=tools%2Fgit-hooks%2Fpre-commit;h=243f06292bf31be98b6a9ba28582a794440ddefb;hb=09e1d27cb215e73b1e80684b9e4b13e5ab93a29b;hp=590554c0bc3077c631a6f7d3ed19c8e9b3fb0c59;hpb=3d0358a63f806461cdf786cbcc6b34b0ee23d681;p=mirror%2Fdsa-puppet.git diff --git a/tools/git-hooks/pre-commit b/tools/git-hooks/pre-commit index 590554c0b..243f06292 100755 --- 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