Skip to content

Commit

Permalink
Only copy hooks if building from a git repo
Browse files Browse the repository at this point in the history
Fixes #3498
  • Loading branch information
jefferai committed Oct 27, 2017
1 parent 6cfdd7b commit ed1cbb0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ vet:
prep: fmtcheck
@sh -c "'$(CURDIR)/scripts/goversioncheck.sh' '$(GO_VERSION_MIN)'"
go generate $(go list ./... | grep -v /vendor/)
cp .hooks/* .git/hooks/
@if [ -d .git/hooks ]; then cp .hooks/* .git/hooks/; fi

This comment has been minimized.

Copy link
@samsalisbury

samsalisbury May 24, 2019

Contributor

Any objection to changing this to use symlinks instead of a copy? That way the hooks will be updated on pull rather than having to wait for prep to be called. (This would have made my life easier today when developing a new hook.) @jefferai @jfreda if you don't mind I'll send a PR.


# bootstrap the build by downloading additional tools
bootstrap:
Expand Down

0 comments on commit ed1cbb0

Please sign in to comment.