diff options
author | Luca Muscariello <lumuscar+fdio@cisco.com> | 2017-02-21 15:37:42 +0100 |
---|---|---|
committer | Luca Muscariello <lumuscar+fdio@cisco.com> | 2017-02-21 15:37:42 +0100 |
commit | fc6a10d4a0095229ee2420618dd30efe4ce46628 (patch) | |
tree | 595347247ff6bf9f9760366ac87311d4ef1644f9 | |
parent | 342d82ab130edb68fe5f07aa1e7f3048eaac6003 (diff) |
more information for committers
Change-Id: I8c9b99efb91d9eb3929a9a46db5094e917a91b3f
Signed-off-by: Luca Muscariello <lumuscar+fdio@cisco.com>
-rw-r--r-- | README.md | 22 |
1 files changed, 22 insertions, 0 deletions
@@ -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 |