Running into the same issue on self-hosted GitLab Community Edition 14.10.5
.
After a rebase, CI_COMMIT_BEFORE_SHA
references a commit that can't be found with git log and only existed before the rebase. Breaks a pipeline due to an Invalid symmetric difference expression
reported by git log
.