From 4a670e130804d630fa056e4a60101698dc7a9af1 Mon Sep 17 00:00:00 2001 From: "Santiago M. Mola" Date: Fri, 28 Apr 2017 15:20:51 +0200 Subject: do not convert local paths to URL * Do not convert local paths to URLs, just keep them as they are. * This way we add support for Windows without taking care of Windows path-to-URL conversion. --- common_test.go | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'common_test.go') diff --git a/common_test.go b/common_test.go index bd60385..e1a2a0f 100644 --- a/common_test.go +++ b/common_test.go @@ -1,7 +1,6 @@ package git import ( - "fmt" "testing" "gopkg.in/src-d/go-git.v4/plumbing" @@ -95,8 +94,7 @@ func (s *BaseSuite) GetBasicLocalRepositoryURL() string { } func (s *BaseSuite) GetLocalRepositoryURL(f *fixtures.Fixture) string { - path := f.DotGit().Base() - return fmt.Sprintf("file://%s", path) + return f.DotGit().Base() } type SuiteCommon struct{} -- cgit