Skip to content

Commit 3570957

Browse files
committed
Fix gofmt hook
1 parent 4c4e576 commit 3570957

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

hooks/gofmt.sh

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ set -e
77
# workaround to allow GitHub Desktop to work, add this (hopefully harmless) setting here.
88
export PATH=$PATH:/usr/local/bin
99

10+
1011
for file in "$@"; do
11-
go fmt "$(dirname "$file")"
12-
done
12+
go fmt "./$(dirname "$file")"
13+
done

0 commit comments

Comments
 (0)