GitLab CI_COMMIT_SHA

I am trying to understand the GitLab pipeline variables CI_MERGE_REQUEST_SOURCE_BRANCH_SHA and CI_COMMIT_SHA. I am basically looking for cases where there might be difference in the Git content.

I know that the first SHA points at the source branch HEAD and the latter SHA is the merge commit for that and I see there is no difference in the Git content when diff-ing those two SHA.

Is that always the case?

I agree with your information and keep trying.

1 Like