diff --git a/hooks/gofmt.sh b/hooks/gofmt.sh index 722d908e..6d40d959 100755 --- a/hooks/gofmt.sh +++ b/hooks/gofmt.sh @@ -9,5 +9,5 @@ export PATH=$PATH:/usr/local/bin for file in "$@"; do - go fmt "./$(dirname "$file")" + go fmt "$file" done