From fc6a10d4a0095229ee2420618dd30efe4ce46628 Mon Sep 17 00:00:00 2001 From: Luca Muscariello Date: Tue, 21 Feb 2017 15:37:42 +0100 Subject: [PATCH] more information for committers Change-Id: I8c9b99efb91d9eb3929a9a46db5094e917a91b3f Signed-off-by: Luca Muscariello --- README.md | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/README.md b/README.md index 5d38f162..e7f35bda 100644 --- a/README.md +++ b/README.md @@ -63,3 +63,25 @@ git clone -b http-server/master https://gerrit.fd.io/r/cicn http-server; git clone -b viper/master https://gerrit.fd.io/r/cicn viper; git clone -b vicn/master https://gerrit.fd.io/r/cicn vicn; git clone -b android-sdk https://gerrit.fd.io/r/cicn android-sdk; + +### For committers + +By having multiple sub-projects in the same repo, it is highly recommended +to use the following approach while using branches and pushing patch sets. + +$ subp = cicm-plugin +$ committer = user + +$ git clone -b cicn-plugin/master ssh://committer@gerrit.fd.io:29418/cicn subp; +$ scp -p -P 29418 committer@gerrit.fd.io:hooks/commit-msg subp/.git/hooks/; + +If you use an email alias like user+fdio@email.com that is registered in the +gerrit frontend it is recommended to set the following kind of configuration + +$ git config --local user.email "$committer+fdio@email.com" +$ git config --local alias.push-for-review "push origin HEAD:refs/for/$subp/master" + +this allows to avoid pushing for review to different sub-project branches +using the command + +$ git push-for-review -- 2.16.6