Only create git hook whet it is absent
Signed-off-by: Audrius Molis <masta@dr.com>
This commit is contained in:
parent
9e126a7399
commit
8e85d15a86
2
Makefile
2
Makefile
|
@ -126,7 +126,7 @@ _tmpdir-rm: ##@prepare Remove TMPDIR
|
|||
|
||||
_install-hooks: SHELL := /bin/sh
|
||||
_install-hooks: ##@prepare Create prepare-commit-msg git hook symlink
|
||||
@ln -s ../../scripts/hooks/prepare-commit-msg .git/hooks
|
||||
@ln -s -f ../../scripts/hooks/prepare-commit-msg .git/hooks
|
||||
-include _install-hooks
|
||||
|
||||
# Remove directories and ignored files
|
||||
|
|
Loading…
Reference in New Issue