Enter passphrase for key '/home/gerrit2/.ssh/id_rsa':
Counting objects: 4, done.
Delta compression using up to 4 threads.
Compressing objects: 100% (2/2), done.
Writing objects: 100% (3/3), 322 bytes, done.
Total 3 (delta 0), reused 0 (delta 0)
remote: Processing changes: refs: 1, done
remote: ERROR: missing Change-Id in commit message footer
remote: Suggestion for commit message:
remote: Init commit
remote:
remote: Change-Id: Iacca76130d4b1d33bf234a9acc7f83bc8edf5bd9
remote:
remote: Hint: To automatically insert Change-Id, install the hook:
remote: scp -p -P 29418 [email protected]:hooks/commit-msg `git rev-parse --git-dir`/hooks/commit-msg
remote:
remote:
To ssh://[email protected]:29418/demo-project
! [remote rejected] HEAD -> refs/for/master (missing Change-Id in commit message footer)
error: failed to push some refs to 'ssh://[email protected]:29418/demo-project'
執行完scp -p -P 29418 [email protected]:hooks/commit-msg `git rev-parse --git-dir`/hooks/commit-msg之後沒什麼反應,再次提交還是不行
要在commit信息裏面寫上Change-Id才行
Init commit
Change-Id: Iacca76130d4b1d33bf234a9acc7f83bc8edf5bd9
這樣才能提交