blob: 3494c3f48f8767229ba878dfd6472c3ac04d9329 [file] [log] [blame]
Marian Harbachebeb1542019-12-13 10:42:46 +01001:linkattrs:
Han-Wen Nienhuysb8424a02018-08-27 20:04:08 +02002= commit xxxxxxx: missing Change-Id in message footer
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
Jonathan Nieder1063e302019-04-02 22:29:31 -07007a Change-Id.
Edwin Kempinc7f9e452010-12-27 09:21:45 +01008
9You can see the commit messages for existing commits in the history
Marian Harbach34253372019-12-10 18:01:31 +010010by doing a link:http://www.kernel.org/pub/software/scm/git/docs/git-log.html[git log,role=external,window=_blank].
Edwin Kempinc7f9e452010-12-27 09:21:45 +010011
12To avoid this error you should use the link:cmd-hook-commit-msg.html[commit hook] or EGit to
13automatically create and insert a unique Change-Id into the commit
14message on every commit.
15
16
Yuxuan 'fishy' Wang61698b12013-12-20 12:55:51 -080017== Missing Change-Id in the commit message
Edwin Kempinc7f9e452010-12-27 09:21:45 +010018
19If the commit message of a commit that you want to push does not
20contain a Change-Id you have to update its commit message and insert
21a Change-Id.
22
23If you want to upload a new change to Gerrit make sure that you have
24configured your environment so that a unique Change-Id is
25automatically created and inserted on every commit as explained
26above. Now you can rewrite the commits for which the Change-Ids are
27missing and the Change-Ids will be automatically created and inserted
28into the commit messages. This is explained link:error-push-fails-due-to-commit-message.html#commit_hook[here].
29
30If you want to update an existing change in Gerrit by uploading a new
David Pursehousea1d633b2014-05-02 17:21:02 +090031patch set you should copy its Change-Id from the Gerrit Web UI and
Edwin Kempinc7f9e452010-12-27 09:21:45 +010032insert it into the commit message. How to update the commit message
33is explained link:error-push-fails-due-to-commit-message.html[here].
34
35
Edwin Kempinc7f9e452010-12-27 09:21:45 +010036GERRIT
37------
38Part of link:error-messages.html[Gerrit Error Messages]
Yuxuan 'fishy' Wang99cb68d2013-10-31 17:26:00 -070039
40SEARCHBOX
41---------