mirror of https://github.com/k3s-io/k3s
Merge pull request #826 from smarterclayton/git_check_wrong
Check for dirty files is not accuratepull/6/head
commit
a3d5d915c0
|
@ -2,8 +2,8 @@
|
||||||
|
|
||||||
set -e
|
set -e
|
||||||
|
|
||||||
if (( $(git status --porcelain 2>/dev/null | grep "^M" | wc -l) > 0 )); then
|
if ! git diff-index --quiet HEAD -- || test $(git ls-files --exclude-standard --others third_party/src | wc -l) != 0; then
|
||||||
echo "You can't have any staged files in git when updating packages."
|
echo "You can't have any staged files or changes in third_party/src/ in git when updating packages."
|
||||||
echo "Either commit them or unstage them to continue."
|
echo "Either commit them or unstage them to continue."
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in New Issue