您的位置:首页 > 其它

ERROR missing Change-Id in commit message footer

2016-09-09 11:59 591 查看
Today, my first day of contributing code to another new project.

I failed to push commits to Gerrit with the error ‘ERROR: missing Change-Id in commit message footer’.

After googled, I found my answer already offered by Gerrit that is the Gerrit has been configured always requiring a Change-Id in the commit message.

And the simple way to fix this is to install a hook to automatically insert Change-Id on each commit.

either way below could obtain the hook from Gerrit for you:

$ scp -p -P 29418 <your username>@<your Gerrit review server>:hooks/commit-msg <local path to your git>/.git/hooks/
$ curl -Lo <local path to your git>/.git/hooks/commit-msg <your Gerrit http URL>/tools/hooks/commit-msg


More info please trace: https://gerrit-review.googlesource.com/Documentation/cmd-hook-commit-msg.html
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息