"cannot add patch set to XXXXX" when pushing to other users change-sets

1,813 views
Skip to first unread message

Fabio Ponciroli

unread,
Oct 29, 2018, 10:21:52 AM10/29/18
to Repo and Gerrit Discussion

Hi everyone,

I’m having a permission issue while pushing a patch to a changes  created from another user. The repos I’m having troubles with are these ones (and probably more?):

https://gerrit.googlesource.com/plugins/analytics

https://gerrit.googlesource.com/plugins/analytics-wizard


Despite me being part of the plugin-analytics and plugin-analytcis-wizard groups, when I fetch a change set created by another user and I try to push to it, I get this error: “cannot add patch set to XXXXX”


Here an example:


  analytics git:(master) git fetch https://gerrit.googlesource.com/plugins/analytics refs/changes/74/201874/5 && git checkout FETCH_HEAD


… hack hack hack …


  analytics git:(fc0ccc8) ✗ git commit --amend

[detached HEAD 475551c] Work In Progress: attempt to fix aggregation by branch

 Author: Antonio Barone <synt...@gmail.com>

 Date: Fri Oct 26 18:21:44 2018 +0300

 8 files changed, 72 insertions(+), 38 deletions(-)


  analytics git:(475551c) git push origin HEAD:refs/for/master

Enumerating objects: 50, done.

Counting objects: 100% (50/50), done.

Delta compression using up to 8 threads

Compressing objects: 100% (16/16), done.

Writing objects: 100% (28/28), 2.74 KiB | 1.37 MiB/s, done.

Total 28 (delta 12), reused 0 (delta 0)

remote: Resolving deltas: 100% (12/12)

remote: Processing changes: refs: 1, done

To https://gerrit.googlesource.com/plugins/analytics

 ! [remote rejected] HEAD -> refs/for/master (cannot add patch set to 201874.)

error: failed to push some refs to 'https://gerrit.googlesource.com/plugins/analytics'


Does anybody know what the issue can be on how I can investigate it?


Thanks,

Fabio

Gustaf Lundh

unread,
Oct 29, 2018, 10:34:51 AM10/29/18
to Fabio Ponciroli, Repo and Gerrit Discussion

Luca seems to have removed "Add Patch Set" permission for registered users, and there seems to be none for project owners:


https://gerrit.googlesource.com/plugins/analytics/+/refs/meta/config%5E%21/


/Gustaf


From: repo-d...@googlegroups.com <repo-d...@googlegroups.com> on behalf of Fabio Ponciroli <pon...@gmail.com>
Sent: Monday, October 29, 2018 3:21 PM
To: Repo and Gerrit Discussion
Subject: "cannot add patch set to XXXXX" when pushing to other users change-sets
 
--
--
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.

Luca Milanesio

unread,
Oct 29, 2018, 10:40:56 AM10/29/18
to Gustaf Lundh, Luca Milanesio, Fabio Ponciroli, Repo and Gerrit Discussion

On 29 Oct 2018, at 14:34, Gustaf Lundh <gustaf...@axis.com> wrote:

Luca seems to have removed "Add Patch Set" permission for registered users, and there seems to be none for project owners:


It wasn't there at the beginning :-(
Then I added, did not work, then I've put it back as it was.

I don't recall we ever used that permission for plugins.

Luca.
Reply all
Reply to author
Forward
0 new messages