aboutsummaryrefslogtreecommitdiffstats
path: root/remote.go
diff options
context:
space:
mode:
Diffstat (limited to 'remote.go')
-rw-r--r--remote.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/remote.go b/remote.go
index c297e8e..1b8b502 100644
--- a/remote.go
+++ b/remote.go
@@ -728,9 +728,9 @@ func (r *Remote) buildFetchedTags(refs memory.ReferenceStorage) (updated bool, e
return
}
-// LSRemote performs ls-remote on the remote.
-func (r *Remote) LSRemote(auth transport.AuthMethod) ([]*plumbing.Reference, error) {
- s, err := newUploadPackSession(r.c.URLs[0], auth)
+// List the references on the remote repository.
+func (r *Remote) List(o *ListOptions) ([]*plumbing.Reference, error) {
+ s, err := newUploadPackSession(r.c.URLs[0], o.Auth)
if err != nil {
return nil, err
}