Fix ee-specific-check when EE is up-to-date with CE branch
What does this MR do?
When EE is up-to-date with CE branch, use fetch HEAD
Are there points in the code the reviewer needs to double check?
This does not resolve https://gitlab.com/gitlab-org/gitlab-ee/issues/6890 but it's splitting the case where we need to handle separately.
Why was this MR needed?
This was discovered in https://gitlab.com/gitlab-org/gitlab-ee/-/jobs/81628110 (https://gitlab.com/gitlab-org/gitlab-ee/merge_requests/6501) which is apparently ignoring the changes in https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/20608
After applying the fix, it's https://gitlab.com/gitlab-org/gitlab-ee/-/jobs/81655672
Does this MR meet the acceptance criteria?
-
Tests added for this feature/bug - Conform by the code review guidelines
-
Has been reviewed by a Backend maintainer
-
What are the relevant issue numbers?
Related to #6890 (closed)