blob: 9cddd85b03df265e29a842a61091d99d05a3f852 [file] [log] [blame]
Yuxuan 'fishy' Wang61698b12013-12-20 12:55:51 -08001= missing Change-Id in commit message footer
Edwin Kempinc7f9e452010-12-27 09:21:45 +01002
3With this error message Gerrit rejects to push a commit to a project
4which is configured to always require a Change-Id in the commit
5message if the commit message of the pushed commit does not contain
David Pursehousea68769e2012-11-07 12:36:17 +09006a Change-Id in the footer (the last paragraph).
Edwin Kempinc7f9e452010-12-27 09:21:45 +01007
Edwin Kempin27574922013-07-04 15:19:08 +02008This error may happen for different reasons:
Edwin Kempinddfc41a2011-05-06 10:32:05 +02009
10. missing Change-Id in the commit message
11. Change-Id is contained in the commit message but not in the last
12 paragraph
Edwin Kempinc7f9e452010-12-27 09:21:45 +010013
14You can see the commit messages for existing commits in the history
15by doing a link:http://www.kernel.org/pub/software/scm/git/docs/git-log.html[git log].
16
17To avoid this error you should use the link:cmd-hook-commit-msg.html[commit hook] or EGit to
18automatically create and insert a unique Change-Id into the commit
19message on every commit.
20
21
Yuxuan 'fishy' Wang61698b12013-12-20 12:55:51 -080022== Missing Change-Id in the commit message
Edwin Kempinc7f9e452010-12-27 09:21:45 +010023
24If the commit message of a commit that you want to push does not
25contain a Change-Id you have to update its commit message and insert
26a Change-Id.
27
28If you want to upload a new change to Gerrit make sure that you have
29configured your environment so that a unique Change-Id is
30automatically created and inserted on every commit as explained
31above. Now you can rewrite the commits for which the Change-Ids are
32missing and the Change-Ids will be automatically created and inserted
33into the commit messages. This is explained link:error-push-fails-due-to-commit-message.html#commit_hook[here].
34
35If you want to update an existing change in Gerrit by uploading a new
David Pursehousea1d633b2014-05-02 17:21:02 +090036patch set you should copy its Change-Id from the Gerrit Web UI and
Edwin Kempinc7f9e452010-12-27 09:21:45 +010037insert it into the commit message. How to update the commit message
38is explained link:error-push-fails-due-to-commit-message.html[here].
39
40
Yuxuan 'fishy' Wang61698b12013-12-20 12:55:51 -080041== Change-Id is contained in the commit message but not in the last paragraph
Edwin Kempinc7f9e452010-12-27 09:21:45 +010042
43To be picked up by Gerrit, a Change-Id must be in the last paragraph
44of a commit message, for details, see link:user-changeid.html[Change-Id Lines].
45
46If the Change-Id is contained in the commit message but not in its
47last paragraph you have to update the commit message and move the
David Pursehouse2c6f6382014-09-04 13:06:19 +090048Change-Id into the last paragraph. How to update the commit message
Edwin Kempinc7f9e452010-12-27 09:21:45 +010049is explained link:error-push-fails-due-to-commit-message.html[here].
50
Edwin Kempinc7f9e452010-12-27 09:21:45 +010051
52GERRIT
53------
54Part of link:error-messages.html[Gerrit Error Messages]
Yuxuan 'fishy' Wang99cb68d2013-10-31 17:26:00 -070055
56SEARCHBOX
57---------