Add a gendocs pre-submit hook.

This commit is contained in:
Brendan Burns
2015-01-14 21:27:13 -08:00
parent 88c68e0349
commit 718a563b1f
3 changed files with 105 additions and 9 deletions

View File

@@ -80,3 +80,16 @@ if [[ "${#files_need_description[@]}" -ne 0 ]]; then
echo
) >> $1
fi
if ! hack/verify-gendocs.sh > /dev/null; then
(
echo
echo "# *** ERROR: *** docs are out of sync between cli and markdown"
echo "# run hack/gendocs.sh > docs/kubectl.md to regenerate"
echo
echo "#"
echo "# Your commit will be aborted unless you regenerate docs."
echo " COMMIT_BLOCKED_ON_GENDOCS"
echo
) >> $1
fi