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:
@@ -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)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user