fix: using filepath instead of path
This commit is contained in:
parent
8d181a6a1e
commit
01f7ff315c
1 changed files with 1 additions and 2 deletions
|
@ -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")
|
||||
|
|
Loading…
Reference in a new issue