As of v5, the remote fetch URL is hardcoded as the first registered URL:
|
s, err := newUploadPackSession(r.c.URLs[0], o.Auth) |
Please make this configurable.
I suggest exposing it as FetchOptions.RemoteURL and validating that the provided URL is registered in the Remote config.
Use case: I want to selectively fetch via SSH or HTTP.