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