Skip to content

Commit

Permalink
Adding files to Godeps should not trigger gofmt or boilerplate warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
Sam Ghods committed Sep 4, 2014
1 parent 51a86f8 commit 98c3a00
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion hooks/prepare-commit-msg
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 98c3a00

Please sign in to comment.