Page MenuHomePhabricator

Cannot amend Gerrit changeset written by other author in Mediawiki Core repo (due to not being in Trusted-Contributors group)
Closed, ResolvedPublic

Description

Trying to run

git review -R

after running

git commit -a --amend

gives following error:

remote: 
remote: Processing changes: refs: 1
remote: Processing changes: refs: 1, done            
To ssh://gerrit.wikimedia.org:29418/mediawiki/core.git
 ! [remote rejected]       HEAD -> refs/for/master%topic=T249323 (cannot add patch set to 585759.)
error: failed to push some refs to 'ssh://alqaholic007@gerrit.wikimedia.org:29418/mediawiki/core.git'

Steps to replicate the error:

git review -d 585759
  • make a change in README file
git commit -a --amend
git review -R

I found a related article at T230916: Cannot amend Gerrit changeset in MediaWiki Core repo (due to not being in addPatchSet?) turns out it is some permissions issue

OS: OSX Mojave
Node: 12.x
git-review: v1.28.0

Event Timeline

You cannot amend the patchset since you're its author. Yes you need to be added to Trusted-Contributors to be able to do that

Reedy removed Soham as the assignee of this task.Apr 3 2020, 8:02 PM
Soham updated the task description. (Show Details)
Aklapper renamed this task from Cannot amend Gerrit changeset in Mediawiki Core repo to Cannot amend Gerrit changeset written by other author in Mediawiki Core repo.Apr 3 2020, 9:21 PM

gives following error:

@AlQaholic007: Please always post text as text, so it can be indexed and searched for.
Please also always provide complete steps. This seems to be after running git review -d 585759. See https://www.mediawiki.org/wiki/How_to_report_a_bug

Soham updated the task description. (Show Details)

gives following error:

@AlQaholic007: Please always post text as text, so it can be indexed and searched for.
Please also always provide complete steps. This seems to be after running git review -d 585759. See https://www.mediawiki.org/wiki/How_to_report_a_bug

My bad @Aklapper I have modified the task body with steps to reproduce the error

That will be because you need to be added to the trusted user group in Gerrit (to gain the ability to upload changes to other users changes).

I’ve added you to the group, please let us know if it works.

@Paladox thanks a tonne. This issue has been resolved now and can be closed

@Paladox please add me to in that group my developer account username is gaurav87
THANKS

Aklapper renamed this task from Cannot amend Gerrit changeset written by other author in Mediawiki Core repo to Cannot amend Gerrit changeset written by other author in Mediawiki Core repo (due to not being in Trusted-Contributors group).Apr 4 2020, 9:06 AM