Commit 93e8d38e authored by Ma_124's avatar Ma_124

added logging to hooks

parent 00bf031d
Pipeline #46256333 passed with stages
in 2 minutes and 21 seconds
#!/bin/sh
echo "Signed commit message"
printf "\n\n[hooks installed]\n<!-- You MUST NOT add the above line manually or if you haven't installed all the hooks in this directory. -->\n" >> $1
#!/bin/sh
echo "Running go fmt"
go fmt $(go list ./... | grep -v /vendor/)
echo "Running go vet"
go vet --composites=false `go list ./... | grep -v /vendor/`
if [ $? -ne 0 ]; then
echo "Please fix the go vet issue first"
exit 1
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment