下載生成 Change-Id 的 hook $ scp -p -P 29418 user@gerrit.server:hooks/commit-msg .git/hooks/
or
$ cd .git/hooks ; wget http://gerrit.server:8081/tools/hooks/commit-msg ; chmod u+x commit-msg
重新 commit
$ git commit --amend
Reference :missing Change-Id in commit messagegit - Gerrit error when Change-Id in commit messages are missing - Stack Overflow
沒有留言:
張貼留言