Gerrit error when Change-Id in commit messages are missing

前端 未结 12 1185
北荒
北荒 2020-11-28 03:58

I set up a branch in the remote repository and made some commits on that branch. Now I want to merge the remote branch to the remote master.

Basically follows are my

12条回答
  •  独厮守ぢ
    2020-11-28 04:34

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

    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

提交回复
热议问题