Marian Harbach | ebeb154 | 2019-12-13 10:42:46 +0100 | [diff] [blame] | 1 | :linkattrs: |
Han-Wen Nienhuys | b8424a0 | 2018-08-27 20:04:08 +0200 | [diff] [blame] | 2 | = commit xxxxxxx: missing Change-Id in message footer |
Edwin Kempin | c7f9e45 | 2010-12-27 09:21:45 +0100 | [diff] [blame] | 3 | |
| 4 | With this error message Gerrit rejects to push a commit to a project |
| 5 | which is configured to always require a Change-Id in the commit |
| 6 | message if the commit message of the pushed commit does not contain |
Jonathan Nieder | 1063e30 | 2019-04-02 22:29:31 -0700 | [diff] [blame] | 7 | a Change-Id. |
Edwin Kempin | c7f9e45 | 2010-12-27 09:21:45 +0100 | [diff] [blame] | 8 | |
| 9 | You can see the commit messages for existing commits in the history |
Marian Harbach | 3425337 | 2019-12-10 18:01:31 +0100 | [diff] [blame] | 10 | by doing a link:http://www.kernel.org/pub/software/scm/git/docs/git-log.html[git log,role=external,window=_blank]. |
Edwin Kempin | c7f9e45 | 2010-12-27 09:21:45 +0100 | [diff] [blame] | 11 | |
| 12 | To avoid this error you should use the link:cmd-hook-commit-msg.html[commit hook] or EGit to |
| 13 | automatically create and insert a unique Change-Id into the commit |
| 14 | message on every commit. |
| 15 | |
| 16 | |
Yuxuan 'fishy' Wang | 61698b1 | 2013-12-20 12:55:51 -0800 | [diff] [blame] | 17 | == Missing Change-Id in the commit message |
Edwin Kempin | c7f9e45 | 2010-12-27 09:21:45 +0100 | [diff] [blame] | 18 | |
| 19 | If the commit message of a commit that you want to push does not |
| 20 | contain a Change-Id you have to update its commit message and insert |
| 21 | a Change-Id. |
| 22 | |
| 23 | If you want to upload a new change to Gerrit make sure that you have |
| 24 | configured your environment so that a unique Change-Id is |
| 25 | automatically created and inserted on every commit as explained |
| 26 | above. Now you can rewrite the commits for which the Change-Ids are |
| 27 | missing and the Change-Ids will be automatically created and inserted |
| 28 | into the commit messages. This is explained link:error-push-fails-due-to-commit-message.html#commit_hook[here]. |
| 29 | |
| 30 | If you want to update an existing change in Gerrit by uploading a new |
David Pursehouse | a1d633b | 2014-05-02 17:21:02 +0900 | [diff] [blame] | 31 | patch set you should copy its Change-Id from the Gerrit Web UI and |
Edwin Kempin | c7f9e45 | 2010-12-27 09:21:45 +0100 | [diff] [blame] | 32 | insert it into the commit message. How to update the commit message |
| 33 | is explained link:error-push-fails-due-to-commit-message.html[here]. |
| 34 | |
| 35 | |
Edwin Kempin | c7f9e45 | 2010-12-27 09:21:45 +0100 | [diff] [blame] | 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 | --------- |