diff options
author | Máximo Cuadros <mcuadros@gmail.com> | 2017-07-18 23:41:46 +0200 |
---|---|---|
committer | Máximo Cuadros <mcuadros@gmail.com> | 2017-07-18 23:41:46 +0200 |
commit | f6fb4f559e1619c6b478d88c3706e72bc315e2ac (patch) | |
tree | 6bc3cd749acbd822f4e7e48f6cb68eaefd4e5d8a | |
parent | 34d8d19bc7e5f1051bd09d9daa687c8f08eace6d (diff) | |
download | go-git-f6fb4f559e1619c6b478d88c3706e72bc315e2ac.tar.gz |
plumbing: server, fix loader in windows
-rw-r--r-- | plumbing/transport/server/loader.go | 5 |
1 files changed, 4 insertions, 1 deletions
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 } |