Don't allow image pushes with unstaged changes

This commit is contained in:
Cameron Gutman
2023-12-18 06:28:48 +00:00
parent 8f937d7bfb
commit eae37a04b4

View File

@@ -1,3 +1,11 @@
fail()
{
echo "$1" 1>&2
exit 1
}
git diff-index --quiet HEAD -- || fail "Images must not be pushed with uncommitted changes!"
set -e
TAG_UNIQUE_ID=`git ls-tree HEAD | sha256sum | cut -c-16`