diff options
author | Máximo Cuadros <mcuadros@gmail.com> | 2017-05-04 02:09:02 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-05-04 02:09:02 +0200 |
commit | c00e46e225a9974a0e6440765bbea548352183bc (patch) | |
tree | 4fe04df1602363cae392c6943fea844fdf9a9b0a /plumbing/transport/file/server.go | |
parent | d95e4a5b1dce0ba5fa25e5535044c05088b79e16 (diff) | |
parent | 4a670e130804d630fa056e4a60101698dc7a9af1 (diff) | |
download | go-git-c00e46e225a9974a0e6440765bbea548352183bc.tar.gz |
Merge pull request #368 from smola/windows-path
do not convert local paths to URL
Diffstat (limited to 'plumbing/transport/file/server.go')
-rw-r--r-- | plumbing/transport/file/server.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/plumbing/transport/file/server.go b/plumbing/transport/file/server.go index 74085c2..61dd42d 100644 --- a/plumbing/transport/file/server.go +++ b/plumbing/transport/file/server.go @@ -14,7 +14,7 @@ import ( // and error. This is meant to be used when implementing a git-upload-pack // command. func ServeUploadPack(path string) error { - ep, err := transport.NewEndpoint(fmt.Sprintf("file://%s", path)) + ep, err := transport.NewEndpoint(path) if err != nil { return err } @@ -32,7 +32,7 @@ func ServeUploadPack(path string) error { // input and error. This is meant to be used when implementing a // git-receive-pack command. func ServeReceivePack(path string) error { - ep, err := transport.NewEndpoint(fmt.Sprintf("file://%s", path)) + ep, err := transport.NewEndpoint(path) if err != nil { return err } |