From 1b770fb4b5a83042a6007cd9d263bfdf078822ad Mon Sep 17 00:00:00 2001 From: Patrick Georgi Date: Wed, 4 Mar 2015 15:03:05 +0100 Subject: build system: Only setup git hooks if we're in a git checkout A bit crude test, but before we would have _created_ .git and confused later git presence tests. Change-Id: Iec882d0e38ce1bd227cae8c1e541fb21be085290 Signed-off-by: Patrick Georgi Reviewed-on: http://review.coreboot.org/8601 Tested-by: build bot (Jenkins) Reviewed-by: Stefan Reinauer --- Makefile.inc | 1 + 1 file changed, 1 insertion(+) diff --git a/Makefile.inc b/Makefile.inc index 951cfeef3f..eb8b6014f7 100644 --- a/Makefile.inc +++ b/Makefile.inc @@ -436,6 +436,7 @@ lint lint-stable: rm -f $$LINTLOG gitconfig: + [ -d .git ] mkdir -p .git/hooks for hook in commit-msg pre-commit ; do \ if [ util/gitconfig/$$hook -nt .git/hooks/$$hook -o \ -- cgit v1.2.3