I've pushed a work-in-progress (WIP) changeset to Gerrit by pushing to refs/for/master%wip
, as per the documentation.
The documentation also states that one can remove the WIP flag from a changeset by pushing it to refs/for/master%ready
, but Gerrit consistently rejects the push with the error
! [remote rejected] mybranch -> refs/for/master%ready (no new changes)
Force-pushing doesn't help either.
Is there a way to remove the WIP flag via Git without introducing artificial changes?
Unfortunately you can't set the WIP flag using the "git push" command without pushing a new patchset.
You can, of course, use the graphical interface or you can post to /changes/CHANGE-ID/ready to set the WIP flag using REST. See more info here.