<div dir="ltr"><div style="font-size:small" class="gmail_default">OK. Finally figured out what I was doing wrong.<br></div><div style="font-size:small" class="gmail_default">Did the Tip & Trick "Fetch fast from <a href="http://git.osmocom.org">git.osmocom.org</a> push to gerrit" and thought adding gerrit to an existing clone was redundant and maybe damaging:(<br></div><div style="font-size:small" class="gmail_default">So, I omitted it and proceeded to push for review. Failed.<br></div><div style="font-size:small" class="gmail_default">This time I added gerrit to an existing clone and proceeded with the push for review:<br>-> git push gerrit HEAD:refs/for/master/Minor_Typo_Fixes<br>Counting objects: 32, done.<br>Delta compression using up to 8 threads.<br>Compressing objects: 100% (7/7), done.<br>Writing objects: 100% (7/7), 96.41 KiB | 0 bytes/s, done.<br>Total 7 (delta 4), reused 0 (delta 0)<br>remote: Resolving deltas: 100% (4/4)<br>remote: Processing changes: new: 1, done    <br>remote: <br>remote: New Changes:<br>remote:   <a href="https://gerrit.osmocom.org/#/c/osmocom-bb/+/9209">https://gerrit.osmocom.org/#/c/osmocom-bb/+/9209</a> Minor Typo Fixes<br>remote: <br>To ssh://<a href="http://nbalkanas@gerrit.osmocom.org:29418/osmocom-bb.git">nbalkanas@gerrit.osmocom.org:29418/osmocom-bb.git</a><br> * [new branch]      HEAD -> refs/for/master/Minor_Typo_Fixes<br><br></div><div style="font-size:small" class="gmail_default">I even got a mail alert from it<br></div><div style="font-size:small" class="gmail_default">Finally it's over:)<br><br></div><div style="font-size:small" class="gmail_default">Suggestion to avoid similar future issues:<br></div><div style="font-size:small" class="gmail_default">Delete header "Add gerrit to an existing clone" and maybe add it as a comment<br></div><div style="font-size:small" class="gmail_default">Place Its content under "Push to Review"<br></div><div style="font-size:small" class="gmail_default">Keeping it as a separate heading, made me think that It's unrelated to "Push to review"<br></div><div style="font-size:small" class="gmail_default">The choice of target "gerrit" in the push command is unfortunate, since it can be confused for a host, <a href="http://gerrit.osmocom.org">gerrit.osmocom.org</a><br><br></div><div style="font-size:small" class="gmail_default">BR<br>Nikos<br></div><div style="font-size:small" class="gmail_default"><br><br></div><div style="font-size:small" class="gmail_default"><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, May 17, 2018 at 4:14 AM, Nikos Balkanas <span dir="ltr"><<a href="mailto:nbalkanas@gmail.com" target="_blank">nbalkanas@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div style="font-size:small" class="gmail_default">Yeah, I have done all that.<br></div><div style="font-size:small" class="gmail_default">I'm still confused with the "Push for review" section.<br><br></div><div style="font-size:small" class="gmail_default">->  git push gerrit HEAD:refs/for/master<br>fatal: 'gerrit' does not appear to be a git repository<span class=""><br>fatal: Could not read from remote repository.<br><br>Please make sure you have the correct access rights<br>and the repository exists.<br><br></span></div><div style="font-size:small" class="gmail_default">As I mentioned to Domi, I just need push priviledges to gerrit.<br></div><div style="font-size:small" class="gmail_default">This is my output:<br><br></div><span class=""><div style="font-size:small" class="gmail_default">-> cat .ssh/config<br>ServerAliveInterval = 300<br>Host osmo<br>Hostname <a href="http://gerrit.osmocom.org" target="_blank">gerrit.osmocom.org</a><br>Port 29418<br>User nbalkanas<br><br></div></span><div style="font-size:small" class="gmail_default"><span class="">-> git push ssh://osmo/osmocom-bb.git<br></span>Counting objects: 32, done.<br>Delta compression using up to 8 threads.<br>Compressing objects: 100% (7/7), done.<br>Writing objects: 100% (7/7), 96.37 KiB | 0 bytes/s, done.<br>Total 7 (delta 4), reused 0 (delta 0)<br>remote: Resolving deltas: 100% (4/4)<br>remote: Branch refs/heads/master:<br>remote: You are not allowed to perform this operation.<br>remote: To push into this reference you need 'Push' rights.<br>remote: User: nbalkanas<br>remote: Please read the documentation and contact an administrator<br>remote: if you feel the configuration is incorrect<br>remote: Processing changes: refs: 1, done    <br>To ssh://osmo/osmocom-bb.git<br> ! [remote rejected] master -> master (prohibited by Gerrit: ref update access denied)<br>error: failed to push some refs to 'ssh://osmo/osmocom-bb.git'<br><br></div><div style="font-size:small" class="gmail_default">gerrit is not a repository:( I also don't have priviledges to post to gerrit, which is fine, it is the gerrit<br></div><div style="font-size:small" class="gmail_default">master, and not the gerrit review...<br>Not that for the git push output i've posted, all pubkeys and accounts are in order...<span class="HOEnZb"><font color="#888888"><br><br></font></span></div><span class="HOEnZb"><font color="#888888"><div style="font-size:small" class="gmail_default">Nikos<br></div></font></span></div><div class="HOEnZb"><div class="h5"><div class="gmail_extra"><br><div class="gmail_quote">On Thu, May 17, 2018 at 3:55 AM, Neels Hofmeyr <span dir="ltr"><<a href="mailto:nhofmeyr@sysmocom.de" target="_blank">nhofmeyr@sysmocom.de</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span>On Thu, May 17, 2018 at 12:59:55AM +0300, Nikos Balkanas wrote:<br>
> -> git push ssh://osmo/osmocom-bb.git<br>
<br>
</span>Admitted, the patch pushing instructions only matched the case where one added<br>
a secondary 'gerrit' remote. So I tweaked the "Push for review" section:<br>
<a href="https://osmocom.org/projects/cellular-infrastructure/wiki/Gerrit#Push-for-review" rel="noreferrer" target="_blank">https://osmocom.org/projects/c<wbr>ellular-infrastructure/wiki/Ge<wbr>rrit#Push-for-review</a><br>
<br>
In another mail you posted an SSH access error. You have added your SSH public<br>
key to your gerrit user as instructed on the wiki, right?<br>
<span class="m_484022338596250070HOEnZb"><font color="#888888"><br>
~N<br>
</font></span></blockquote></div><br></div>
</div></div></blockquote></div><br></div>