Pass SSH environment through to git ls-remote command for remote branches
Fixes what I think is a problem introduced in e8c9a045
Without this, for an SSH remote, the known_hosts
file and SSH key will not be available when we run git ls-remote
, so it will fail if the feature flag is enabled.
This is from dead reckoning at the moment, and the change is kind of clunky, I'm just trying to demonstrate the problem here.
WDYT @rspeicher ? Does this explain gitlab#216619 (closed) ?
Edited by GitLab Release Tools Bot