pre-commit 263 B

12345678910
  1. #!/usr/bin/env bash
  2. test -z "$(gofmt -s -l . | grep -v Godeps/_workspace/src/ | tee /dev/stderr)"
  3. if [ $? -gt 0 ]; then
  4. echo "Some files aren't formatted, please run 'go fmt ./pkg/...' to format your source code before committing"
  5. exit 1
  6. fi
  7. grunt test