blob: af628fa3c167de34a574478f1dd0644a08d94178 [file] [log] [blame]
Marian Harbachebeb1542019-12-13 10:42:46 +01001:linkattrs:
Han-Wen Nienhuysb8424a02018-08-27 20:04:08 +02002= commit xxxxxxx: missing subject; Change-Id must be in message footer
Edwin Kempin4fc2a522014-02-20 16:35:29 +01003
4With this error message Gerrit rejects to push a commit to a project
5which is configured to always require a Change-Id in the commit
6message if the commit message of the pushed commit does not contain
7a subject and a message, but only a Change-Id.
8
9This error happens if the Change-Id is the only line in the commit
10message.
11
12You can see the commit messages for existing commits in the history
Marian Harbach34253372019-12-10 18:01:31 +010013by doing a link:http://www.kernel.org/pub/software/scm/git/docs/git-log.html[git log,role=external,window=_blank].
Edwin Kempin4fc2a522014-02-20 16:35:29 +010014
15== Change-Id is the only line in the commit message
16
17Gerrit does not parse the subject of a commit message for the
18Change-Id even if this is the only and last paragraph of the commit
19message.
20
21If the Change-Id is the only line in the commit message you must update
22the commit message and insert a subject as the first line in the commit
23message. The Change-Id must be in the last paragraph of the commit
24message, i.e. separated from the subject by a blank line. How to update
25the commit message is explained
26link:error-push-fails-due-to-commit-message.html[here].
27
28
29GERRIT
30------
31Part of link:error-messages.html[Gerrit Error Messages]
32
33SEARCHBOX
34---------