fix: using filepath instead of path

This commit is contained in:
Carlos Alexandro Becker 2019-05-23 01:41:56 -03:00
parent 8d181a6a1e
commit 01f7ff315c
No known key found for this signature in database
GPG Key ID: E61E2F7DC14AB940

View File

@ -5,7 +5,6 @@ import (
"fmt" "fmt"
"io/ioutil" "io/ioutil"
"os" "os"
"path"
"path/filepath" "path/filepath"
"regexp" "regexp"
"strings" "strings"
@ -174,7 +173,7 @@ func findGitDirectory(fromFile string) (string, error) {
if fi.Mode().IsDir() { if fi.Mode().IsDir() {
dir = absPath dir = absPath
} else { } else {
dir = path.Dir(absPath) dir = filepath.Dir(absPath)
} }
gitPath := filepath.Join(dir, ".git") gitPath := filepath.Join(dir, ".git")