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