Commit b33d6e32 authored by Lin Jen-Shin's avatar Lin Jen-Shin

Also match against tags because:

v11.0.0-rc4-ee wants to match against v11.0.0-rc4,
which both are tags.

See:
https://gitlab.com/gitlab-org/gitlab-ee/-/jobs/72747457
parent 4dbd17f2
......@@ -170,7 +170,7 @@ module EESpecificCheck
ls_remote_output = run_git_command("ls-remote #{ce_repo_url} \"*#{minimal_ce_branch_name}*\"")
if ls_remote_output.include?(minimal_ce_branch_name)
branch_to_fetch = ls_remote_output.scan(%r{(?<=refs/heads/).+}).sort_by(&:size).first
branch_to_fetch = ls_remote_output.scan(%r{(?<=refs/heads|tags/).+}).sort_by(&:size).first
say "💪 We found the branch '#{branch_to_fetch}' in the #{ce_repo_url} repository. We will fetch it."
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment