From 8e85d15a8615a7c35936123ab40237a9857bf854 Mon Sep 17 00:00:00 2001 From: Audrius Molis Date: Mon, 14 Mar 2022 11:29:13 +0200 Subject: [PATCH] Only create git hook whet it is absent Signed-off-by: Audrius Molis --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 022ddf09b3..d29f993e10 100644 --- a/Makefile +++ b/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