您的位置:首页 > 其它

Gerrit error when Change-Id in commit messages are missing

2014-05-27 17:38 756 查看



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 from
http://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/
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: 
相关文章推荐