gitconfig: upate commit-msg if newer one is available
Change-Id: Iea010bf6f456a5ce5d8906821c95a7de4b577085 Signed-off-by: Zheng Bao <zheng.bao@amd.com> Signed-off-by: zbao <fishbaozi@gmail.com> Reviewed-on: http://review.coreboot.org/1429 Tested-by: build bot (Jenkins) Reviewed-by: Alexandru Gagniuc <mr.nuke.me@gmail.com> Reviewed-by: Stefan Reinauer <stefan.reinauer@coreboot.org>
This commit is contained in:
parent
9de0fee935
commit
f2c3254870
|
@ -291,7 +291,13 @@ lint lint-stable:
|
||||||
rm -f $$LINTLOG
|
rm -f $$LINTLOG
|
||||||
|
|
||||||
gitconfig:
|
gitconfig:
|
||||||
for hook in commit-msg pre-commit; do if ! [ -x .git/hooks/$$hook ]; then cp util/gitconfig/$$hook .git/hooks/$$hook; chmod +x .git/hooks/$$hook; fi; done
|
for hook in commit-msg pre-commit ; do \
|
||||||
|
if [ util/gitconfig/$$hook -nt .git/hooks/$$hook -o \
|
||||||
|
! -x .git/hooks/$$hook ]; then \
|
||||||
|
cp util/gitconfig/$$hook .git/hooks/$$hook; \
|
||||||
|
chmod +x .git/hooks/$$hook; \
|
||||||
|
fi; \
|
||||||
|
done
|
||||||
(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)
|
(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
|
crossgcc: clean-for-update
|
||||||
|
|
Loading…
Reference in New Issue