From 27b77b48bb0a3e3daa181d24e6625036019c29c0 Mon Sep 17 00:00:00 2001 From: "Dr. Stefan Schimanski" Date: Fri, 24 Feb 2017 10:03:58 +0100 Subject: [PATCH] hack/verify-staging-client-go.sh: fail verbosely if working dir is dirty --- hack/verify-staging-client-go.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/hack/verify-staging-client-go.sh b/hack/verify-staging-client-go.sh index 87b3203d0bd..39d86ca6ed9 100755 --- a/hack/verify-staging-client-go.sh +++ b/hack/verify-staging-client-go.sh @@ -34,6 +34,11 @@ readonly V KUBE_ROOT=$(dirname "${BASH_SOURCE}")/.. cd ${KUBE_ROOT} +if ! git diff --exit-code; then + echo "ERROR: $0 cannot be run on a dirty working directory." + exit 1 +fi + # Smoke test client-go examples go install ./staging/src/k8s.io/client-go/examples/...