buildx/util/gitutil/path_windows.go
CrazyMax ac5b3241b1
gitutil: sanitize root dir on WSL
Signed-off-by: CrazyMax <1951866+crazy-max@users.noreply.github.com>
2023-12-19 09:27:32 +01:00

15 lines
224 B
Go

package gitutil
import (
"os/exec"
"path/filepath"
)
func gitPath(wd string) (string, error) {
return exec.LookPath("git.exe")
}
func sanitizePath(path string) string {
return filepath.ToSlash(filepath.Clean(path))
}