From f6fb4f559e1619c6b478d88c3706e72bc315e2ac Mon Sep 17 00:00:00 2001 From: Máximo Cuadros Date: Tue, 18 Jul 2017 23:41:46 +0200 Subject: plumbing: server, fix loader in windows --- plumbing/transport/server/loader.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'plumbing/transport/server') diff --git a/plumbing/transport/server/loader.go b/plumbing/transport/server/loader.go index d4eccd4..a7ed0dc 100644 --- a/plumbing/transport/server/loader.go +++ b/plumbing/transport/server/loader.go @@ -5,12 +5,14 @@ import ( "gopkg.in/src-d/go-git.v4/plumbing/transport" "gopkg.in/src-d/go-git.v4/storage/filesystem" + "fmt" + "gopkg.in/src-d/go-billy.v3" "gopkg.in/src-d/go-billy.v3/osfs" ) // DefaultLoader is a filesystem loader ignoring host and resolving paths to /. -var DefaultLoader = NewFilesystemLoader(osfs.New("/")) +var DefaultLoader = NewFilesystemLoader(osfs.New("")) // Loader loads repository's storer.Storer based on an optional host and a path. type Loader interface { @@ -40,6 +42,7 @@ func (l *fsLoader) Load(ep transport.Endpoint) (storer.Storer, error) { } if _, err := fs.Stat("config"); err != nil { + fmt.Println(ep.Path(), err) return nil, transport.ErrRepositoryNotFound } -- cgit