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