blob: 9fa2b91254a701a9b7f624c2d7424e3f24e68cd0 [file] [log] [blame]
David Pursehousea68769e2012-11-07 12:36:17 +09001multiple Change-Id lines in commit message footer
2=================================================
Edwin Kempin947d6662010-12-27 13:33:09 +01003
4With this error message Gerrit rejects to push a commit if the commit
David Pursehousea68769e2012-11-07 12:36:17 +09005message footer of the pushed commit contains several Change-Id lines.
Edwin Kempin947d6662010-12-27 13:33:09 +01006
7You can see the commit messages for existing commits in the history
8by doing a link:http://www.kernel.org/pub/software/scm/git/docs/git-log.html[git log].
9
10If it was the intention to rework a change and to push a new patch
11set, find the change in the Gerrit WebUI, copy its Change-Id line and
12use the copied Change-Id line instead of the existing Change-Id lines
13in the commit message of the commit for which the push is failing.
14How to do this is explained link:error-push-fails-due-to-commit-message.html#commit_hook[here].
15
16If it was the intention to create a new change in Gerrit simply
17remove all Change-Id lines from the commit message of the
18commit for which the push is failing. How to do this is explained
19link:error-push-fails-due-to-commit-message.html#commit_hook[here]. In case you have configured the link:cmd-hook-commit-msg.html[commit hook] a new Change-Id
20will be automatically generated and inserted.
21
22
23SEE ALSO
24--------
25
26* link:user-changeid.html[Change-Id Lines]
27
28
29GERRIT
30------
31Part of link:error-messages.html[Gerrit Error Messages]