Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Unable to send code into Gerrit for code review

I need to send code to Gerrit for review.

Executed the below command for the sending the code into Gerrit.

Command: “git review”

Got an error “missing or invalid Change-Id line format in commit message footer” after the execution of the above command.

Please find the below detailed error: root@bhagi:~/glance/python-glanceclient# git review Password for 'https://bharc@review.openstack.org': remote: Processing changes: refs: 1, done remote: ERROR: missing or invalid Change-Id line format in commit message footer remote: remote: Hint: To automatically insert Change-Id, install the hook: remote: gitdir=$(git rev-parse --git-dir); scp -p -P 29418 bharc@review.openstack.org:hooks/commit-msg ${gitdir}/hooks/ remote: And then amend the commit: remote: git commit --amend remote: To https://bharc@review.openstack.org/openstack/python-glanceclient.git ! [remote rejected] HEAD -> refs/publish/master/bug/1555662 (missing or invalid Change-Id line format in commit message footer) error: failed to push some refs to 'https://bharc@review.openstack.org/openstack/python-glanceclient.git'

Please help me to resolve the issue.

Thanks in advance.

Unable to send code into Gerrit for code review

I need to send code to Gerrit for review.

Executed the below command for the sending the code into Gerrit.

Command: “git review”

Got an error “missing or invalid Change-Id line format in commit message footer” after the execution of the above command.

Please find the below detailed error: error:

root@bhagi:~/glance/python-glanceclient# git review
Password for 'https://bharc@review.openstack.org':
remote: Processing changes: refs: 1, done
remote: ERROR: missing or invalid Change-Id line format in commit message footer
remote:
remote: Hint: To automatically insert Change-Id, install the hook:
remote:   gitdir=$(git rev-parse --git-dir); scp -p -P 29418 bharc@review.openstack.org:hooks/commit-msg ${gitdir}/hooks/
remote: And then amend the commit:
remote:   git commit --amend
remote:
To https://bharc@review.openstack.org/openstack/python-glanceclient.git
! [remote rejected] HEAD -> refs/publish/master/bug/1555662 (missing or invalid Change-Id line format in commit message footer)
error: failed to push some refs to 'https://bharc@review.openstack.org/openstack/python-glanceclient.git'

'https://bharc@review.openstack.org/openstack/python-glanceclient.git'

Please help me to resolve the issue.

Thanks in advance.