Edwin Kempin | a70c5d4 | 2011-01-10 10:16:52 +0100 | [diff] [blame] | 1 | change ... closed |
| 2 | ================= |
| 3 | |
David Pursehouse | bde9075 | 2012-06-27 14:27:11 +0900 | [diff] [blame^] | 4 | With this error message Gerrit rejects to push a commit or submit a |
| 5 | review label (approval) to a change that is already closed. |
| 6 | |
| 7 | When Pushing a Commit |
| 8 | --------------------- |
Edwin Kempin | a70c5d4 | 2011-01-10 10:16:52 +0100 | [diff] [blame] | 9 | |
| 10 | This error occurs if you are trying to push a commit that contains |
| 11 | the Change-Id of a closed change in its commit message. A change can |
| 12 | be closed either because it was already submitted and merged or |
| 13 | because it was abandoned. |
| 14 | |
| 15 | If the change for which you wanted to upload a new patch set was |
| 16 | already submitted and merged you may want to push your commit as a |
| 17 | new change. To do this you have to remove the Change-Id from the |
| 18 | commit message as explained link:error-push-fails-due-to-commit-message.html[here] and ideally generate a new Change-Id |
| 19 | using the link:cmd-hook-commit-msg.html[commit hook] or EGit. Before pushing again it is also |
David Pursehouse | 221d4f6 | 2012-06-08 17:38:08 +0900 | [diff] [blame] | 20 | recommended 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 Kempin | a70c5d4 | 2011-01-10 10:16:52 +0100 | [diff] [blame] | 21 | change. Pushing again should now create a new change in Gerrit. |
| 22 | |
| 23 | If the change for which you wanted to upload a new patch set was |
| 24 | abandoned and your new changes overcome the reasons for abandoning |
| 25 | this 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 |
| 28 | new patch set for this change will be created. |
| 29 | |
David Pursehouse | bde9075 | 2012-06-27 14:27:11 +0900 | [diff] [blame^] | 30 | When Submitting a Review Label |
| 31 | ------------------------------ |
| 32 | |
| 33 | This error occurs if you are trying to submit a review label (approval) using |
| 34 | the link:cmd-review.html[ssh review command] after the change has been closed. |
| 35 | A change can be closed because it was submitted and merged, because it was abandoned, |
| 36 | or because the patchset to which you are submitting the review has been replaced |
| 37 | by a newer patchset. |
Edwin Kempin | a70c5d4 | 2011-01-10 10:16:52 +0100 | [diff] [blame] | 38 | |
| 39 | GERRIT |
| 40 | ------ |
| 41 | Part of link:error-messages.html[Gerrit Error Messages] |