mirror of
https://github.com/go-gitea/gitea.git
synced 2025-09-11 06:21:02 +00:00
committed by
Lunny Xiao
parent
b209531959
commit
33ad554800
5
vendor/gopkg.in/src-d/go-git.v4/remote.go
generated
vendored
5
vendor/gopkg.in/src-d/go-git.v4/remote.go
generated
vendored
@@ -45,7 +45,10 @@ type Remote struct {
|
||||
s storage.Storer
|
||||
}
|
||||
|
||||
func newRemote(s storage.Storer, c *config.RemoteConfig) *Remote {
|
||||
// NewRemote creates a new Remote.
|
||||
// The intended purpose is to use the Remote for tasks such as listing remote references (like using git ls-remote).
|
||||
// Otherwise Remotes should be created via the use of a Repository.
|
||||
func NewRemote(s storage.Storer, c *config.RemoteConfig) *Remote {
|
||||
return &Remote{s: s, c: c}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user