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/


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM