Commit e50c0c27 authored by Rémy Coutable's avatar Rémy Coutable

Merge branch 'also-match-against-tags' into 'master'

Also match against tags because we could want to match tags

See merge request gitlab-org/gitlab-ee!6002
parents b71b48b7 b33d6e32
......@@ -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