From 701c34f70130703f04be844046db74782e7bea7a Mon Sep 17 00:00:00 2001 From: Daniel Smith Date: Thu, 12 Jun 2014 22:03:00 -0700 Subject: [PATCH] Forgot to actually add -s to the gofmt call in the hook. --- 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 d5bf5171b5..63e55a72da 100755 --- a/hooks/prepare-commit-msg +++ b/hooks/prepare-commit-msg @@ -2,7 +2,7 @@ errors=0 for file in $(git diff --cached --name-only | grep "\.go"); do - diff="$(git show ":${file}" | gofmt -d)" + diff="$(git show ":${file}" | gofmt -s -d)" if [[ -n "$diff" ]]; then echo "# *** ERROR: *** File ${file} has not been gofmt'd." >> $1 errors=1