Passing `--heads` so ls-remote only finds branches
What does this MR do?
Passing --heads
so ls-remote only finds branches
Why was this MR needed?
Otherwise if it found some tags but not branches, it would set branch_to_fetch
to nil
. See: https://gitlab.com/gitlab-org/gitlab-ee/-/jobs/72747457 (migration:upgrade-mysql-ce-to-ee
) and https://gitlab.slack.com/archives/CAZMX68HJ/p1528278380000043
/cc @jameslopez @nolith
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
-
@rymai Please review? Thanks!
Edited by Lin Jen-Shin