blob: b13f3b44193700304b463f6758aecf375ad00a38 [file] [log] [blame]
David Pursehousea68769e2012-11-07 12:36:17 +09001missing Change-Id in commit message footer
2==========================================
Edwin Kempinc7f9e452010-12-27 09:21:45 +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
David Pursehousea68769e2012-11-07 12:36:17 +09007a Change-Id in the footer (the last paragraph).
Edwin Kempinc7f9e452010-12-27 09:21:45 +01008
9This error may happen for two reasons:
Edwin Kempinddfc41a2011-05-06 10:32:05 +020010
11. missing Change-Id in the commit message
12. Change-Id is contained in the commit message but not in the last
13 paragraph
Edwin Kempinc7f9e452010-12-27 09:21:45 +010014
15You can see the commit messages for existing commits in the history
16by doing a link:http://www.kernel.org/pub/software/scm/git/docs/git-log.html[git log].
17
18To avoid this error you should use the link:cmd-hook-commit-msg.html[commit hook] or EGit to
19automatically create and insert a unique Change-Id into the commit
20message on every commit.
21
22
23Missing Change-Id in the commit message
24---------------------------------------
25
26If the commit message of a commit that you want to push does not
27contain a Change-Id you have to update its commit message and insert
28a Change-Id.
29
30If you want to upload a new change to Gerrit make sure that you have
31configured your environment so that a unique Change-Id is
32automatically created and inserted on every commit as explained
33above. Now you can rewrite the commits for which the Change-Ids are
34missing and the Change-Ids will be automatically created and inserted
35into the commit messages. This is explained link:error-push-fails-due-to-commit-message.html#commit_hook[here].
36
37If you want to update an existing change in Gerrit by uploading a new
38patch set you should copy its Change-Id from the Gerrit WebUI and
39insert it into the commit message. How to update the commit message
40is explained link:error-push-fails-due-to-commit-message.html[here].
41
42
43Change-Id is contained in the commit message but not in the last paragraph
44--------------------------------------------------------------------------
45
46To be picked up by Gerrit, a Change-Id must be in the last paragraph
47of a commit message, for details, see link:user-changeid.html[Change-Id Lines].
48
49If the Change-Id is contained in the commit message but not in its
50last paragraph you have to update the commit message and move the
51Change-ID into the last paragraph. How to update the commit message
52is explained link:error-push-fails-due-to-commit-message.html[here].
53
54
55GERRIT
56------
57Part of link:error-messages.html[Gerrit Error Messages]