blob: a239ef10886a4af8f69b3303407420afbd46d851 [file] [log] [blame]
Yuxuan 'fishy' Wang61698b12013-12-20 12:55:51 -08001= change ... closed
Edwin Kempina70c5d42011-01-10 10:16:52 +01002
David Pursehousebde90752012-06-27 14:27:11 +09003With this error message Gerrit rejects to push a commit or submit a
4review label (approval) to a change that is already closed.
5
Yuxuan 'fishy' Wang61698b12013-12-20 12:55:51 -08006== When Pushing a Commit
Edwin Kempina70c5d42011-01-10 10:16:52 +01007
8This error occurs if you are trying to push a commit that contains
9the Change-Id of a closed change in its commit message. A change can
10be closed either because it was already submitted and merged or
11because it was abandoned.
12
13If the change for which you wanted to upload a new patch set was
14already submitted and merged you may want to push your commit as a
15new change. To do this you have to remove the Change-Id from the
16commit message as explained link:error-push-fails-due-to-commit-message.html[here] and ideally generate a new Change-Id
17using the link:cmd-hook-commit-msg.html[commit hook] or EGit. Before pushing again it is also
David Pursehouse221d4f62012-06-08 17:38:08 +090018recommended to do a link:http://www.kernel.org/pub/software/scm/git/docs/git-rebase.html[git rebase] to base your commit on the submitted
Edwin Kempina70c5d42011-01-10 10:16:52 +010019change. Pushing again should now create a new change in Gerrit.
20
21If the change for which you wanted to upload a new patch set was
22abandoned and your new changes overcome the reasons for abandoning
David Pursehousea1d633b2014-05-02 17:21:02 +090023this change you may want to restore the change in the Gerrit Web UI
24(browse the abandoned change in the Gerrit Web UI and click on the
Edwin Kempina70c5d42011-01-10 10:16:52 +010025'Restore Change' button). Afterwards the push should succeed and a
26new patch set for this change will be created.
27
Yuxuan 'fishy' Wang61698b12013-12-20 12:55:51 -080028== When Submitting a Review Label
David Pursehousebde90752012-06-27 14:27:11 +090029
30This error occurs if you are trying to submit a review label (approval) using
31the link:cmd-review.html[ssh review command] after the change has been closed.
32A change can be closed because it was submitted and merged, because it was abandoned,
33or because the patchset to which you are submitting the review has been replaced
34by a newer patchset.
Edwin Kempina70c5d42011-01-10 10:16:52 +010035
36GERRIT
37------
38Part of link:error-messages.html[Gerrit Error Messages]
Yuxuan 'fishy' Wang99cb68d2013-10-31 17:26:00 -070039
40SEARCHBOX
41---------