1
0
Fork 0
mirror of https://code.forgejo.org/forgejo/runner.git synced 2025-08-11 17:50:58 +00:00

fix: using filepath instead of path

This commit is contained in:
Carlos Alexandro Becker 2019-05-23 01:41:56 -03:00
parent 94401575cc
commit f2140006d5

View file

@ -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")