Merge "git diff check updated to watch for md changes"

This commit is contained in:
Zuul 2020-09-28 22:48:57 +00:00 committed by Gerrit Code Review
commit 918291f932

View File

@ -23,6 +23,13 @@ then
exit 1
fi
git diff-files --quiet --ignore-submodules **/*.md
if [ $? -ne 0 ]
then
echo "git diff found modified cli help, please run make cli-docs"
exit 1
fi
# Evaluate git index for differences, if found print message and fail.
git diff-index --cached --quiet --ignore-submodules HEAD -- **/*.golden
if [ $? -ne 0 ]
@ -31,4 +38,11 @@ then
exit 1
fi
git diff-index --cached --quiet --ignore-submodules HEAD -- **/*.md
if [ $? -ne 0 ]
then
echo "git diff found modified cli help, please run make cli-docs"
exit 1
fi
echo "no git diff detected, make target completed successfully"