From 01f7ff315c1b3eaa5e3a4eee06bd6d88ebf60ce4 Mon Sep 17 00:00:00 2001 From: Carlos Alexandro Becker Date: Thu, 23 May 2019 01:41:56 -0300 Subject: [PATCH] fix: using filepath instead of path --- common/git.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/common/git.go b/common/git.go index be4e22a..88b1b69 100644 --- a/common/git.go +++ b/common/git.go @@ -5,7 +5,6 @@ import ( "fmt" "io/ioutil" "os" - "path" "path/filepath" "regexp" "strings" @@ -174,7 +173,7 @@ func findGitDirectory(fromFile string) (string, error) { if fi.Mode().IsDir() { dir = absPath } else { - dir = path.Dir(absPath) + dir = filepath.Dir(absPath) } gitPath := filepath.Join(dir, ".git")