Merge pull request #16174 from vrothberg/tree-status

hack/tree_status.sh: print diff at the end
This commit is contained in:
OpenShift Merge Robot
2022-10-14 05:48:32 -04:00
committed by GitHub

View File

@ -1,7 +1,7 @@
#!/usr/bin/env bash
set -e
SUGGESTION="${SUGGESTION:-sync the vendor.conf and commit all changes.}"
SUGGESTION="${SUGGESTION:-run \"make vendor\" and commit all changes.}"
STATUS=$(git status --porcelain)
if [[ -z $STATUS ]]
@ -11,5 +11,9 @@ else
echo "tree is dirty, please $SUGGESTION"
echo ""
echo "$STATUS"
echo ""
echo "---------------------- Diff below ----------------------"
echo ""
git --no-pager diff
exit 1
fi