mirror of
https://gitea.com/Lydanne/buildx.git
synced 2025-05-18 00:47:48 +08:00
15 lines
224 B
Go
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))
|
|
}
|