From ca2c989778d35364b147de5450f4fa0b4446685c Mon Sep 17 00:00:00 2001 From: sirkrypt0 <22522058+sirkrypt0@users.noreply.github.com> Date: Wed, 26 May 2021 14:05:21 +0200 Subject: [PATCH] Make git directory static in Makefile We used a git command to find the location of the users git directory. This resulted in warnings in the CI where git was not installed. For now we make the git directory static to .git to avoid this as the directory is mostly located there. --- Makefile | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/Makefile b/Makefile index 74c1d37..502c198 100644 --- a/Makefile +++ b/Makefile @@ -21,9 +21,8 @@ deps: ## Get the dependencies .PHONY: git-hooks -git-dir = $(shell git rev-parse --git-dir) -git-hooks: $(git-dir)/hooks/pre-commit ## Install the git-hooks -$(git-dir)/hooks/%: git_hooks/% +git-hooks: .git/hooks/pre-commit ## Install the git-hooks +.git/hooks/%: git_hooks/% cp $^ $@ chmod 755 $@