summaryrefslogtreecommitdiff
path: root/new.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2024-11-08 06:43:33 -0600
committerJeff Carr <[email protected]>2024-11-08 06:43:33 -0600
commit55acea0bd769132db7bf420fef3b94fa21ca5f83 (patch)
treed43fb2b485cf0b1439a48037cf129a76e1d53ad0 /new.go
parent29545d3f048ccb148429725d76d0894336985c2b (diff)
use go-cmd/cmdv0.22.12
Diffstat (limited to 'new.go')
-rw-r--r--new.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/new.go b/new.go
index a819a4a..fd1afef 100644
--- a/new.go
+++ b/new.go
@@ -154,7 +154,7 @@ func Clone(wdir string, path string) error {
path = "go.googlesource.com/xerrors"
}
- shell.RunPath(fulldir, []string{"git", "clone", "http://" + path})
+ shell.PathRun(fulldir, []string{"git", "clone", "http://" + path})
if IsDirectory(fullpath) {
// clone worked
return nil
@@ -166,7 +166,7 @@ func Clone(wdir string, path string) error {
return err
}
log.Info("URL:", url)
- shell.RunPath(fulldir, []string{"git", "clone", url, base})
+ shell.PathRun(fulldir, []string{"git", "clone", url, base})
if IsDirectory(fullpath) {
// clone worked
return nil