6
0
mirror of https://github.com/grdl/git-get.git synced 2026-02-05 23:27:56 +00:00

Replace path.Join with filepath.Join

Path is for URLs, filepath is for os paths. This solves the problem with wrong repo root on windows.
This commit is contained in:
Grzegorz Dlugoszewski
2020-06-30 11:25:49 +02:00
parent b8606568ef
commit 235ea0d811
4 changed files with 10 additions and 10 deletions

View File

@@ -4,12 +4,12 @@ import (
"fmt"
"git-get/pkg/io"
"git-get/pkg/run"
"path"
"path/filepath"
"testing"
)
func (r *Repo) writeFile(filename string, content string) {
path := path.Join(r.path, filename)
path := filepath.Join(r.path, filename)
err := io.Write(path, content)
checkFatal(r.t, err)
}