diff options
author | Santiago M. Mola <santi@mola.io> | 2017-04-26 17:04:59 +0200 |
---|---|---|
committer | Santiago M. Mola <santi@mola.io> | 2017-04-27 14:09:41 +0200 |
commit | 45bdbcbe6fdab5a8a4ed4f1b16c191f400a0f6b6 (patch) | |
tree | 5cd0364d068255d361a657963080a78c7ab735d9 /plumbing/transport/server | |
parent | 64cd72debb2a94a49de5ffd3c3a6bfd626df7340 (diff) | |
download | go-git-45bdbcbe6fdab5a8a4ed4f1b16c191f400a0f6b6.tar.gz |
transport: make Endpoint an interface, fixes #362
* add internal *url.URL implementation for regular URLs.
* add internal implementation for SCP-like URLs.
Diffstat (limited to 'plumbing/transport/server')
-rw-r--r-- | plumbing/transport/server/loader.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/plumbing/transport/server/loader.go b/plumbing/transport/server/loader.go index cfe9f04..b51a795 100644 --- a/plumbing/transport/server/loader.go +++ b/plumbing/transport/server/loader.go @@ -34,7 +34,7 @@ func NewFilesystemLoader(base billy.Filesystem) Loader { // storer for it. Returns transport.ErrRepositoryNotFound if a repository does // not exist in the given path. func (l *fsLoader) Load(ep transport.Endpoint) (storer.Storer, error) { - fs := l.base.Dir(ep.Path) + fs := l.base.Dir(ep.Path()) if _, err := fs.Stat("config"); err != nil { return nil, transport.ErrRepositoryNotFound } |