diff --git a/.gitmodules b/.gitmodules index 2afed57..ef69d1e 100644 --- a/.gitmodules +++ b/.gitmodules @@ -1,3 +1,6 @@ [submodule ".ci"] path = .ci url = https://github.com/FrangipaneTeam/release-ci +[submodule "githooks"] + path = githooks + url = https://github.com/FrangipaneTeam/githooks diff --git a/Makefile b/Makefile index cf2a4c9..83cdaaf 100644 --- a/Makefile +++ b/Makefile @@ -12,4 +12,10 @@ fmt: test: go test -v -cover -timeout=120s -parallel=4 ./... -.PHONY: build lint fmt test +submodules: + @git submodule sync + @git submodule update --init --recursive + @git config core.hooksPath githooks + @git config submodule.recurse true + +.PHONY: build lint fmt test submodules diff --git a/githooks b/githooks new file mode 160000 index 0000000..113e3c9 --- /dev/null +++ b/githooks @@ -0,0 +1 @@ +Subproject commit 113e3c9082bc09f60691f90470b5486c11e2c1f0