Skip to content

Expose fetch URL of remote configurable in FetchOptions #173

@noerw

Description

@noerw

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions