This sounds like you have tried to use SSL, but the Gmail port you are
connecting to isn't speaking SSL.
I don't actually know how to connect Gerrit directly to Gmail. One of
my own servers does use Gmail for outbound email, but it does it
indirectly through Postfix. The server is running Postfix, and Gerrit
uses the local Postfix SMTP server as its relay. Postfix then forwards
all outgoing email through the Gmail SMTP servers. There are
instructions available on the web on how to configure a Postfix server
to relay through Gmail.
It should work to connect Gerrit directly to Gmail, did you try
smtpEncryption = TLS?
--
To unsubscribe, email repo-discuss...@googlegroups.com
More info at http://groups.google.com/group/repo-discuss?hl=en
> In Gerrit,
>
> i have cloned my gerrit repo
> git clone ssh://user@xyz:29418/reponame.git
>
> made some changes and commited the changes
>
> i just pushed the changes to gerrit.
>
> the command i have used git push ssh://user@xyz/reponame:29418/reponame
> HAED:refs/for/master
> up to now done successfully.
>
> but i need to push these changes to my git repository in the server.
>
> can any one specify the command for that?
>
> when i am pushing it to my git server using the command git push origin
> master
>
> it was showing an error
>
> $ git push ssh://user@xyz:29418/testing HEAD:refs/heads/master
> Total 0 (delta 0), reused 0 (delta 0)
> To ssh://user@xyz:29418/testing
> ! [remote rejected] HEAD -> master (prohibited by Gerrit)
> error: failed to push some refs to 'ssh://user@xyz:29418/testing'
By default, users don't have permissions to bypass review. To be
able to push to refs/heads/branchname you'll have to grant yourself
at least Push Branch +1 in your git.
--
Magnus Bäck Opinions are my own and do not necessarily
SW Configuration Manager represent the ones of my employer, etc.
Sony Ericsson
--
It helps us if you tells us what kind of research you have performed before asking this of us. That way we know what else you may need, if the documentation of the tool is not clear, and so on.
I presume you have read up on the documentation of the tool, for instance this page is a good read:
https://review.source.android.com/Documentation/access-control.html
To find where to set these settings, please login to your Gerrit instance with administrative privileges and click Admin -> Projects -> The git you want to change ACLs on -> Access
That view will give you an overview over current rules, and give you the possibility to add or remove rules according to your needs.
If you need more help, please feel free to ask again, but also remember to include what you have already tried and what you have already read on the subject - that will make it easier for us to help you with your problem!
--
Best regards,
Fredrik Luthander
Sony Ericsson Mobile Communications AB
> i have read the doc but i didn't got the PUSH BRANCH label in gerrit
> add permission list.
>
> i have pushed the changes into HEDA:refs/for/master but i need push
> this chnges to git server after verfying & code reviewing.
>
> Please tell me if any one knows it.
We understand what you're having problems with, but neither I nor
Fredrik seem to understand what's difficult about adding the required
permission.
Go to Admin -> Projects and locate your project (or pick "-- All
projects --" if you want the modify the default permission for
projects). At the bottom of the Access pane, add a Push Branch +1
permission for the group that should be granted this extra permission.
The Reference Name field can be refs/heads/*.
Push Branch +1 was renamed in Gerrit 2.2.0 to just Push. Magnus is
looking at a 2.1.x server, which uses a slightly different UI and
terminology for the same concepts as the newer 2.2 series.
> We have a problem that we have cloned a project using git, but just
> now we are using gerrit.
>
> we can push the changes to git directly using command "push origin
> XYZ". can we restrict this push using gerrit?
Can you please stop reusing old threads for new topics? Just send
a new email to repo-d...@googlegroups.com with a new subject,
or use the "new post" button on the web page.
Disallowing direct pushes is the Gerrit default. The other week you
asked how to remove this restriction, and we told you how to do so.
Now you want the restriction back again?
| from: Administrator <96540...@gmail.com> reply-to: antlei...@gmail.com,96540...@gmail.com to: 965407636a <96540...@gmail.com> cc: Administrator <antlei...@gmail.com> date: Dec 26, 2019, 5:44 PM subject: Change in hello-project[master]: Review 11 mailing list: <gerrit-hello-project.PC> Filter messages from this mailing list mailed-by: gmail.com signed-by: gmail.com security: Standard encryption (TLS) Learn more Subject: Change in hello-project[master]: Review 11 Message: Administrator would like 965407636a to review this change. View Change Review 11 Change-Id: I626f2780330e149664e600d0f10e8bce23e88123 --- M code-review-sample.txt 1 file changed, 1 insertion(+), 0 deletions(-) git pull ssh://PC:29418/hello-project refs/changes/81/181/1 To view, visit change 181. To unsubscribe, or for help writing mail filters, visit settings. | |||
In http://pc:8080/admin/repos/All-Projects,access Click Edit Goto Reference: refs/meta/config In Read move button Exclusive to left Click Save Environment | |||
| release Gerrit 3.1.2 from http://gerrit-releases.storage.googleapis.com/index.html Xubuntu 16.06 LTS | |||
| Hope this help Best wishes | |||