blob: 3244fb35e2c77a5ebf4ede1dd93ef7b7ceb1e9f7 [file] [log] [blame]
Edwin Kempina70c5d42011-01-10 10:16:52 +01001change ... closed
2=================
3
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
7When Pushing a Commit
8---------------------
Edwin Kempina70c5d42011-01-10 10:16:52 +01009
10This error occurs if you are trying to push a commit that contains
11the Change-Id of a closed change in its commit message. A change can
12be closed either because it was already submitted and merged or
13because it was abandoned.
14
15If the change for which you wanted to upload a new patch set was
16already submitted and merged you may want to push your commit as a
17new change. To do this you have to remove the Change-Id from the
18commit message as explained link:error-push-fails-due-to-commit-message.html[here] and ideally generate a new Change-Id
19using the link:cmd-hook-commit-msg.html[commit hook] or EGit. Before pushing again it is also
David Pursehouse221d4f62012-06-08 17:38:08 +090020recommended 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 +010021change. Pushing again should now create a new change in Gerrit.
22
23If the change for which you wanted to upload a new patch set was
24abandoned and your new changes overcome the reasons for abandoning
25this change you may want to restore the change in the Gerrit WebUI
26(browse the abandoned change in the Gerrit WebUI and click on the
27'Restore Change' button). Afterwards the push should succeed and a
28new patch set for this change will be created.
29
David Pursehousebde90752012-06-27 14:27:11 +090030When Submitting a Review Label
31------------------------------
32
33This error occurs if you are trying to submit a review label (approval) using
34the link:cmd-review.html[ssh review command] after the change has been closed.
35A change can be closed because it was submitted and merged, because it was abandoned,
36or because the patchset to which you are submitting the review has been replaced
37by a newer patchset.
Edwin Kempina70c5d42011-01-10 10:16:52 +010038
39GERRIT
40------
41Part of link:error-messages.html[Gerrit Error Messages]