Ignore untracked files in "git status"

This commit is contained in:
Ciprian Hacman 2020-08-23 11:58:37 +03:00
parent c52a21f9ba
commit 92a3676e51
3 changed files with 3 additions and 3 deletions

View File

@ -24,7 +24,7 @@ cd "${KOPS_ROOT}"
make update-bindata
changes=$(git status --porcelain || true)
changes=$(git status --porcelain --untracked-files=no || true)
if [ -n "${changes}" ]; then
echo "ERROR: bindata is not up to date; please run: make update-bindata"
echo "git diff:"

View File

@ -24,7 +24,7 @@ cd "${KOPS_ROOT}"
make crds
changed_files=$(git status --porcelain || true)
changed_files=$(git status --porcelain --untracked-files=no || true)
if [ -n "${changed_files}" ]; then
echo "Detected that generation is needed; run 'make crds'"
echo "changed files:"

View File

@ -24,7 +24,7 @@ cd "${KOPS_ROOT}"
make gomod
changes=$(git status --porcelain || true)
changes=$(git status --porcelain go.mod go.sum vendor/ || true)
if [ -n "${changes}" ]; then
echo "ERROR: go modules are not up to date; please run: make gomod"
echo "changed files:"