Unable to push git notes with unsigned commits push rule
Steps to reproduce
- Enable the push rule Reject unsigned commits in the project setting
- Add a Git note for a specific commit
git notes add -m 'this is a test note' 72a144e2 - Try to push the note
git push origin refs/notes/commits - Gitlab raising error
remote: GitLab: Commit must be signed with a GPG key
What is the current bug behavior?
Git notes are considered as git commits.
What is the expected correct behavior?
Git notes should not be treated like Git commits. The GPG signing hook should not apply to them.
Job Relevant logs
remote: GitLab: Commit must be signed with a GPG key
To gitlab.xx.com:group/project.git
! [remote rejected] refs/notes/commits -> refs/notes/commits (pre-receive hook declined)
Customer ticket: https://gitlab.zendesk.com/agent/tickets/149489 (internal use)