diff options
author | Máximo Cuadros <mcuadros@gmail.com> | 2017-02-12 23:03:47 +0100 |
---|---|---|
committer | Máximo Cuadros <mcuadros@gmail.com> | 2017-02-12 23:04:00 +0100 |
commit | b3b6e51565dcdbf81546f1d8f0121874a4e4fce9 (patch) | |
tree | 5ad244f4b9c350367ed65d57d8881078aefe0753 /remote.go | |
parent | 498dbf7dc92e288641f1af1acc52704150e8a6c0 (diff) | |
download | go-git-b3b6e51565dcdbf81546f1d8f0121874a4e4fce9.tar.gz |
submodule init implementation
Diffstat (limited to 'remote.go')
-rw-r--r-- | remote.go | 9 |
1 files changed, 6 insertions, 3 deletions
@@ -16,6 +16,7 @@ import ( "srcd.works/go-git.v4/plumbing/storer" "srcd.works/go-git.v4/plumbing/transport" "srcd.works/go-git.v4/plumbing/transport/client" + "srcd.works/go-git.v4/storage" "srcd.works/go-git.v4/storage/memory" "srcd.works/go-git.v4/utils/ioutil" ) @@ -25,10 +26,10 @@ var NoErrAlreadyUpToDate = errors.New("already up-to-date") // Remote represents a connection to a remote repository type Remote struct { c *config.RemoteConfig - s Storer + s storage.Storer } -func newRemote(s Storer, c *config.RemoteConfig) *Remote { +func newRemote(s storage.Storer, c *config.RemoteConfig) *Remote { return &Remote{s: s, c: c} } @@ -321,7 +322,9 @@ func getHaves(localRefs storer.ReferenceStorer) ([]plumbing.Hash, error) { return haves, nil } -func getWants(spec []config.RefSpec, localStorer Storer, remoteRefs storer.ReferenceStorer) ([]plumbing.Hash, error) { +func getWants( + spec []config.RefSpec, localStorer storage.Storer, remoteRefs storer.ReferenceStorer, +) ([]plumbing.Hash, error) { wantTags := true for _, s := range spec { if !s.IsWildcard() { |