Merge pull request #95 from lavalamp/master

Forgot to actually add -s to the gofmt call in the hook.
This commit is contained in:
brendandburns 2014-06-12 22:10:19 -07:00
commit 97caf8f428

View File

@ -2,7 +2,7 @@
errors=0 errors=0
for file in $(git diff --cached --name-only | grep "\.go"); do 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 if [[ -n "$diff" ]]; then
echo "# *** ERROR: *** File ${file} has not been gofmt'd." >> $1 echo "# *** ERROR: *** File ${file} has not been gofmt'd." >> $1
errors=1 errors=1