mirror of
https://github.com/podman-container-tools/podman.git
synced 2026-08-05 00:15:44 +00:00
18 lines
396 B
Bash
Executable file
18 lines
396 B
Bash
Executable file
#!/usr/bin/env bash
|
|
set -e
|
|
|
|
SUGGESTION="${SUGGESTION:-run \"make vendor\" and commit all changes.}"
|
|
|
|
STATUS=$(git status --porcelain)
|
|
if [[ -z $STATUS ]]; then
|
|
echo "tree is clean"
|
|
else
|
|
echo "tree is dirty, please $SUGGESTION"
|
|
echo ""
|
|
echo "$STATUS"
|
|
echo ""
|
|
echo "---------------------- Diff below ----------------------"
|
|
echo ""
|
|
git --no-pager diff
|
|
exit 1
|
|
fi
|