git push error: not Signed-off-by author/committer/uploader in commit message footer -
i newbie in using git. in right direction lot.
i working on issue, on local repository, , found bug fixed in kernel.org repository.
so trying pull in (cherry-pick) fix (commit-id) kernel.org branch , submit local gerrit. , trying maintain commit message of commit kernel.org branch.
when try push fix on local gerrit, face following error:
error: ssh://@123.321.12.1:1234/mirror-sec/asdfgt/hjks ! [remote rejected] -> refs/for/ (not signed-off-by author/committer/uploader in commit message footer) error: failed push refs 'ssh://@123.321.12.1:1234/mirror-sec/asdfgt/hjks'
following steps followed:
- did, git remote add 'tag' git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux
- did, git fetch 'tag'
- searched commit, git log 'tag'/master
- cherry-picked specific commit-id needed, git cherry-pick
- did, git commit --amend, new change-id cherry-picked commit-id
did git push, submit change local gerrit. git push ssh://@123.321.12.1:1234/mirror-sec/asdfgt/hjks :refs/for/
when followed above steps mentioned, face above error mentioned.
is there doing wrong? information overlooking lot.
thanks,
projects in gerrit can configured require signed-off-by in footer of commit message enforce every change signed author, committer or uploader. if project signed-off-by required , commit message footer not contain it, gerrit rejects push commit error message.
this policy can bypassed having access right forge committer.
this error may happen different reasons
if not have access right forge committer identity:
missing signed-off-by in commit message footer signed-off-by contained in commit message footer it’s neither author, committer nor uploader
signed-off-by author, committer or uploader contained in commit message not in footer (last paragraph)
to able push commits can amend commit , add signed off line or use forge committer option in local gerrit
Comments
Post a Comment