blob: ae90d6d04bdb5ac9f4df5bd48e25e95a8fbccd77 [file] [log] [blame]
Marian Harbachebeb1542019-12-13 10:42:46 +01001:linkattrs:
Yuxuan 'fishy' Wang61698b12013-12-20 12:55:51 -08002= change ... closed
Edwin Kempina70c5d42011-01-10 10:16:52 +01003
David Pursehousebde90752012-06-27 14:27:11 +09004With this error message Gerrit rejects to push a commit or submit a
5review label (approval) to a change that is already closed.
6
Yuxuan 'fishy' Wang61698b12013-12-20 12:55:51 -08007== When Pushing a Commit
Edwin Kempina70c5d42011-01-10 10:16:52 +01008
9This error occurs if you are trying to push a commit that contains
10the Change-Id of a closed change in its commit message. A change can
11be closed either because it was already submitted and merged or
12because it was abandoned.
13
14If the change for which you wanted to upload a new patch set was
15already submitted and merged you may want to push your commit as a
16new change. To do this you have to remove the Change-Id from the
17commit message as explained link:error-push-fails-due-to-commit-message.html[here] and ideally generate a new Change-Id
18using the link:cmd-hook-commit-msg.html[commit hook] or EGit. Before pushing again it is also
Marian Harbach34253372019-12-10 18:01:31 +010019recommended to do a link:http://www.kernel.org/pub/software/scm/git/docs/git-rebase.html[git rebase,role=external,window=_blank] to base your commit on the submitted
Edwin Kempina70c5d42011-01-10 10:16:52 +010020change. Pushing again should now create a new change in Gerrit.
21
22If the change for which you wanted to upload a new patch set was
23abandoned and your new changes overcome the reasons for abandoning
David Pursehousea1d633b2014-05-02 17:21:02 +090024this change you may want to restore the change in the Gerrit Web UI
25(browse the abandoned change in the Gerrit Web UI and click on the
Edwin Kempina70c5d42011-01-10 10:16:52 +010026'Restore Change' button). Afterwards the push should succeed and a
27new patch set for this change will be created.
28
Yuxuan 'fishy' Wang61698b12013-12-20 12:55:51 -080029== When Submitting a Review Label
David Pursehousebde90752012-06-27 14:27:11 +090030
31This error occurs if you are trying to submit a review label (approval) using
32the link:cmd-review.html[ssh review command] after the change has been closed.
33A change can be closed because it was submitted and merged, because it was abandoned,
34or because the patchset to which you are submitting the review has been replaced
35by a newer patchset.
Edwin Kempina70c5d42011-01-10 10:16:52 +010036
37GERRIT
38------
39Part of link:error-messages.html[Gerrit Error Messages]
Yuxuan 'fishy' Wang99cb68d2013-10-31 17:26:00 -070040
41SEARCHBOX
42---------