mirror of https://github.com/kubernetes/kops.git
Ignore untracked files in "git status"
This commit is contained in:
parent
c52a21f9ba
commit
92a3676e51
|
@ -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:"
|
||||
|
|
|
@ -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:"
|
||||
|
|
|
@ -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:"
|
||||
|
|
Loading…
Reference in New Issue