Hi all, I just pushed my first test patch to gerrit and would like to
share my steps and issues:
1) Registered account using openid: painless. Being able to use your
gmail/yahoo/launchpad account is a boon. Not another random password :)
Added ssh key. This was an easy process.
2) Failed to find out if I have to pull from the gerrit git repository
somehow, no docs on this, so I started with my FDO git repo.
3) Created a patch that I want to push
4) This is the documentation on how to push: essentially it says:
git push logerrit HEAD:refs/for/master
So I did :-)
4a) First difficulty: It complained that the capitalization of my email
address is different from the registered email address and I were not
allowed to push. ARRG :). I don't want to change my push email
address, so I tried to change the registered email address, which was
a bit of a pain, and it required logout/login to actually work (I
think).
5) Pushed again: Hurray, the patch is at
https://gerrit.libreoffice.org/#/c/231/ now. Waiting for reviews :-)
That should have been it from a contributors point of view, right? What
happens after reviewer +1'd it? Do I have to do something or who would
push to master?
Lastly, I have a very hard time remembering to push to refs/for/master
and know I would constantly forget this. So I wanted to automated this
that when I do: "git push gerrit", the local master branch would be
pushed automatically as ref/for/master. I did this by adding:
push = refs/heads/master:refs/for/master
to .git/config:[remote "gerrit"]. A "git push gerrit" on the master
branch will now push the patch into the review queue.
Thanks,
Sebastian
P.S. core is still described as "test repo that is going to be
discarded" in gerrit. Is it? Can I push patches there or is it going to
be dropped again?
Hi all, I just pushed my first test patch to gerrit and would like to
share my steps and issues:
1) Registered account using openid: painless. Being able to use your
gmail/yahoo/launchpad account is a boon. Not another random password :)
Added ssh key. This was an easy process.
2) Failed to find out if I have to pull from the gerrit git repository
somehow, no docs on this, so I started with my FDO git repo.
3) Created a patch that I want to push
4) This is the documentation on how to push: essentially it says:
git push logerrit HEAD:refs/for/master
So I did :-)
4a) First difficulty: It complained that the capitalization of my email
address is different from the registered email address and I were not
allowed to push. ARRG :). I don't want to change my push email
address, so I tried to change the registered email address, which was
a bit of a pain, and it required logout/login to actually work (I
think).
5) Pushed again: Hurray, the patch is at
https://gerrit.libreoffice.org/#/c/231/ now. Waiting for reviews :-)
That should have been it from a contributors point of view, right? What
happens after reviewer +1'd it? Do I have to do something or who would
push to master?
Lastly, I have a very hard time remembering to push to refs/for/master
and know I would constantly forget this. So I wanted to automated this
that when I do: "git push gerrit", the local master branch would be
pushed automatically as ref/for/master. I did this by adding:
push = refs/heads/master:refs/for/master
to .git/config:[remote "gerrit"]. A "git push gerrit" on the master
branch will now push the patch into the review queue.
Thanks,
Sebastian
P.S. core is still described as "test repo that is going to be
discarded" in gerrit. Is it? Can I push patches there or is it going to
be dropped again?
Context
- My experience: Gerrit from a casual contributors view · Sebastian Spaeth
Privacy Policy |
Impressum (Legal Info) |
Copyright information: Unless otherwise specified, all text and images
on this website are licensed under the
Creative Commons Attribution-Share Alike 3.0 License.
This does not include the source code of LibreOffice, which is
licensed under the Mozilla Public License (
MPLv2).
"LibreOffice" and "The Document Foundation" are
registered trademarks of their corresponding registered owners or are
in actual use as trademarks in one or more countries. Their respective
logos and icons are also subject to international copyright laws. Use
thereof is explained in our
trademark policy.