Hi,
I am working on issue 1072 [1]. I am trying to execute the steps which are mentioned there to replicate the issue. But I am not getting the same error [2] which is mentioned there. I am getting below error [3].
Also, I am not clear about step 1 [4], does it require any external repository? or any alternative is there ?
Here are the steps which I followed:
1. Create a new project in gerrit with no initial commit
2. Grant "Push Merge Commit" on the project for "refs/heads/*"
3. git push origin master
[1] http://code.google.com/p/gerrit/issues/detail?can=2&q=1072&colspec=ID%20Type%20Stars%20Milestone%20Status%20Priority%20Owner%20Summary&id=1072
[2] ! [remote rejected] master -> master (you are not allowed to upload merges)
[3] ! [remote rejected] master -> master (prohibited by Gerrit)
[4] Have an existing repository and codebase (which includes prior merges)
Please suggest
Thanks
Ishan Girdhar
--
--
To unsubscribe, email repo-discuss...@googlegroups.com
More info at http://groups.google.com/group/repo-discuss?hl=en
---
You received this message because you are subscribed to the Google Groups "Repo and Gerrit Discussion" group.
To unsubscribe from this group and stop receiving emails from it, send an email to repo-discuss...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Hi Edwin,
Thanks for your response. I have tried : git push origin HEAD:refs/for/master at step 3. Then the output I got is [1].
But this is not what I am looking for. I want to replicate the issue 1072 [2]. I want to know the steps through which i can understand this issue. As i said in my previous comment, I have tried the steps which are mentioned in the issue but i am not getting the same error.
Hi SASA,
Thanks for you reply. My doubt is :Push permission and Push Merge Commit permission is assigned by default to Registered Users under Reference: refs/for/refs/*.So why I need to assign Push permission separately under Reference: refs/heads/* ? Since Push Merge Commit seems to work with this permission (permission under Reference: refs/for/refs/*) but for Push I need to assign again separately under Reference: refs/heads/*.
Hi Sasa,In our case we have only few people who have push merge rights compared to who have push rights.Hence, We have assigned permissions as below:1-Remove Push Merge Commit permission from Registered users under reference: refs/for/refs/*.2-Add Push and Push Merge Commit permission for selected users under reference: refs/heads/*.Now when I try to direct push merge commit with the selected user (git push origin HEAD:refs/heads/<branch-name>) I get below error -error:! [remote rejected] HEAD -> <branch-name> (you are not allowed to upload merges)This is basically replication of issue 1072 which we are trying to fix.So that we can assign Push Merge permission to only selected usersinstead of all Registered User group.Can you please suggest what should be the correct approach to fix this issue.