Gerrit error when Change-Id in commit messages are missing

Check if your commits have Change-Id: ... in their descriptions. Every commit should have them.

you can "git log" to review your commits have  Change-Id

If no, use git rebase -i to reword the commit messages and add proper Change-Ids (usually this is a SHA1 of the first version of the reviewed commit).

For the future, you should install commit hook, which automatically adds the required Change-Id.

Execute scp -p -P 29418 username@your_gerrit_address:hooks/commit-msg .git/hooks/in the repository directory or download them fromhttp://your_gerrit_address/tools/hooks/commit-msg and copy to .git/hooks

 

scp -p -P 29418 eyacdfn@gerrit.sh.cn.ao.ericsson.se:hooks/commit-msg .git/hoos/

posted @ 2013-01-09 17:47  GOD_YCA  阅读(3531)  评论(0编辑  收藏  举报