From 98c3a002338638204fd5693fe21284584e6d88a9 Mon Sep 17 00:00:00 2001 From: Sam Ghods Date: Wed, 3 Sep 2014 17:00:30 -0700 Subject: [PATCH] Adding files to Godeps should not trigger gofmt or boilerplate warnings --- hooks/prepare-commit-msg | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hooks/prepare-commit-msg b/hooks/prepare-commit-msg index 01b9a514157..f62396c9d02 100755 --- a/hooks/prepare-commit-msg +++ b/hooks/prepare-commit-msg @@ -4,7 +4,7 @@ KUBE_HOOKS_DIR="$(dirname "$(test -L "$0" && echo "$(dirname $0)/$(readlink "$0" files_need_gofmt="" files_need_boilerplate="" -for file in $(git diff --cached --name-only --diff-filter ACM | grep "\.go" | grep -v "third_party"); do +for file in $(git diff --cached --name-only --diff-filter ACM | grep "\.go" | grep -v -e "third_party" -e "Godeps"); do # Check for files that fail gofmt. diff="$(git show ":${file}" | gofmt -s -d)" if [[ -n "$diff" ]]; then