Skip to content

Commit

Permalink
packfile/client: add note about supported schemes
Browse files Browse the repository at this point in the history
  • Loading branch information
zombiezen committed Jan 27, 2021
1 parent 8dafa6b commit 080055d
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions packfile/client/client.go
Expand Up @@ -74,6 +74,11 @@ func (opts *Options) httpUserAgent() string {

// NewRemote returns a new Remote or returns an error if the transport specified
// in the URL scheme is unsupported.
//
// The supported schemes are:
//
// file: Local git-upload-pack/git-receive-pack subprocesses
// http/https: Smart Git HTTP protocol
func NewRemote(u *url.URL, opts *Options) (*Remote, error) {
urlstr := u.Redacted()
remote := &Remote{
Expand Down

0 comments on commit 080055d

Please sign in to comment.