From 3b81b9dfef1ddbc40f57196341a990249d3eaeb2 Mon Sep 17 00:00:00 2001 From: Patrick Georgi Date: Thu, 30 Jun 2011 19:55:31 +0200 Subject: Add local copy of commit-msg hook To avoid using untrusted network to download code, copy the relevant file to the repo and adapt "make gitconfig" to copy from there. Change-Id: I21f0b58d59250aa5d795cf289267ad93bd8d74db Signed-off-by: Patrick Georgi Reviewed-on: http://review.coreboot.org/73 Reviewed-by: Uwe Hermann Tested-by: build bot (Jenkins) --- Makefile.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Makefile.inc') diff --git a/Makefile.inc b/Makefile.inc index 8191a04692..2b3ea8de5f 100644 --- a/Makefile.inc +++ b/Makefile.inc @@ -232,7 +232,7 @@ lint: rm -f $$LINTLOG gitconfig: - if ! [ -x .git/hooks/commit-msg ]; then wget -O .git/hooks/commit-msg http://review.coreboot.org/tools/hooks/commit-msg; chmod +x .git/hooks/commit-msg; fi + if ! [ -x .git/hooks/commit-msg ]; then cp util/gitconfig/commit-msg .git/hooks/commit-msg; chmod +x .git/hooks/commit-msg; fi (git config --global user.name >/dev/null && git config --global user.email >/dev/null) || (printf 'Please configure your name and email in git:\n\n git config --global user.name "Your Name Comes Here"\n git config --global user.email your.email@example.com\n'; exit 1) crossgcc: clean-for-update -- cgit v1.2.3