aboutsummaryrefslogtreecommitdiff
path: root/Makefile.inc
diff options
context:
space:
mode:
authorStefan Reinauer <stefan.reinauer@coreboot.org>2015-06-13 10:45:40 +0200
committerPatrick Georgi <pgeorgi@google.com>2015-06-23 18:44:19 +0200
commit11186dd7e71b5f2b8f31068256a0afd619efd9bf (patch)
tree79b4b2b94fc4c74c9a7fe71c9edb467ca5cf37fc /Makefile.inc
parentdb087659622d280e68547007b1f9aa557f14b6d2 (diff)
gitconfig: set up hooks and target for 3rdparty/blobs
Otherwise per default git will attempt to push to the blobs repository directly instead of sending commits to gerrit. Change-Id: I2ba241e0040a9c749c5bedc3d45d00b0b0dbe9e9 Signed-off-by: Stefan Reinauer <stefan.reinauer@coreboot.org> Reviewed-on: http://review.coreboot.org/10537 Tested-by: build bot (Jenkins) Reviewed-by: Marc Jones <marc.jones@se-eng.com>
Diffstat (limited to 'Makefile.inc')
-rw-r--r--Makefile.inc7
1 files changed, 7 insertions, 0 deletions
diff --git a/Makefile.inc b/Makefile.inc
index b5acdd0b97..2f1fe822ae 100644
--- a/Makefile.inc
+++ b/Makefile.inc
@@ -425,6 +425,13 @@ gitconfig:
chmod +x .git/hooks/$$hook; \
fi; \
done
+ # Now set up thehooks for 3rdparty/blobs
+ if [ util/gitconfig/commit-msg -nt .git/modules/3rdparty/hooks/commit-msg -o \
+ ! -x .git/modules/3rdparty/hooks/commit-msg ]; then \
+ sed -e "s,%MAKE%,$(MAKE),g" util/gitconfig/commit-msg > .git/modules/3rdparty/hooks/commit-msg; \
+ chmod +x .git/modules/3rdparty/hooks/commit-msg; \
+ fi
+ [ -d 3rdparty/blobs ] && cd 3rdparty/blobs && git config remote.origin.push HEAD:refs/for/master
git config remote.origin.push HEAD:refs/for/master
(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)