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 subject; Change-Id must be in message footer |
Edwin Kempin | 4fc2a52 | 2014-02-20 16:35:29 +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 |
| 7 | a subject and a message, but only a Change-Id. |
| 8 | |
| 9 | This error happens if the Change-Id is the only line in the commit |
| 10 | message. |
| 11 | |
| 12 | You can see the commit messages for existing commits in the history |
Marian Harbach | 3425337 | 2019-12-10 18:01:31 +0100 | [diff] [blame] | 13 | by doing a link:http://www.kernel.org/pub/software/scm/git/docs/git-log.html[git log,role=external,window=_blank]. |
Edwin Kempin | 4fc2a52 | 2014-02-20 16:35:29 +0100 | [diff] [blame] | 14 | |
| 15 | == Change-Id is the only line in the commit message |
| 16 | |
| 17 | Gerrit does not parse the subject of a commit message for the |
| 18 | Change-Id even if this is the only and last paragraph of the commit |
| 19 | message. |
| 20 | |
| 21 | If the Change-Id is the only line in the commit message you must update |
| 22 | the commit message and insert a subject as the first line in the commit |
| 23 | message. The Change-Id must be in the last paragraph of the commit |
| 24 | message, i.e. separated from the subject by a blank line. How to update |
| 25 | the commit message is explained |
| 26 | link:error-push-fails-due-to-commit-message.html[here]. |
| 27 | |
| 28 | |
| 29 | GERRIT |
| 30 | ------ |
| 31 | Part of link:error-messages.html[Gerrit Error Messages] |
| 32 | |
| 33 | SEARCHBOX |
| 34 | --------- |