mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-06 18:54:06 +00:00
Test for uncommited changes in and out of index
This commit is contained in:
parent
e7189041ee
commit
f3d3656fe6
@ -40,8 +40,8 @@ VERSION_MAJOR="${BASH_REMATCH[1]}"
|
|||||||
VERSION_MINOR="${BASH_REMATCH[2]}"
|
VERSION_MINOR="${BASH_REMATCH[2]}"
|
||||||
VERSION_PATCH="${BASH_REMATCH[3]}"
|
VERSION_PATCH="${BASH_REMATCH[3]}"
|
||||||
|
|
||||||
if ! git diff-index --quiet --cached HEAD; then
|
if ! git diff HEAD --quiet; then
|
||||||
echo "!!! You must not have any changes in your index when running this command"
|
echo "!!! You must not have any uncommitted changes when running this command"
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user