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