mirror of
https://code.forgejo.org/forgejo/runner.git
synced 2025-08-16 18:01:34 +00:00
fix: using filepath instead of path
This commit is contained in:
parent
94401575cc
commit
f2140006d5
1 changed files with 1 additions and 2 deletions
|
@ -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")
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue