[coreboot-gerrit] New patch to review for coreboot: gitconfig: set up hooks and target for 3rdparty/blobs

Stefan Reinauer (stefan.reinauer@coreboot.org) gerrit at coreboot.org
Sat Jun 13 10:47:52 CEST 2015


Stefan Reinauer (stefan.reinauer at coreboot.org) just uploaded a new patch set to gerrit, which you can find at http://review.coreboot.org/10537

-gerrit

commit e062e1ad7a6270d6702bf63512d501fd3a76491f
Author: Stefan Reinauer <stefan.reinauer at coreboot.org>
Date:   Sat Jun 13 10:45:40 2015 +0200

    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 at coreboot.org>
---
 Makefile.inc | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/Makefile.inc b/Makefile.inc
index b5acdd0..2f1fe82 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 at example.com\n'; exit 1)
 



More information about the coreboot-gerrit mailing list