diff options
| author | Jeff Carr <[email protected]> | 2024-11-15 09:12:47 -0600 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2024-11-15 09:12:47 -0600 |
| commit | 2e8a1d479350270f89385fde00e68f013a18eacd (patch) | |
| tree | 0aed33b86756e939e4e3834ded8694cae28834a1 /new.go | |
| parent | 4ab00cce021217a63db9157892006646e2496152 (diff) | |
use more realtime output for git clonev0.22.14
Diffstat (limited to 'new.go')
| -rw-r--r-- | new.go | 9 |
1 files changed, 7 insertions, 2 deletions
@@ -154,7 +154,12 @@ func Clone(wdir string, path string) error { path = "go.googlesource.com/xerrors" } - shell.PathRun(fulldir, []string{"git", "clone", "http://" + path}) + r := shell.PathRunRealtime(fulldir, []string{"git", "clone", "--verbose", "--progress", "http://" + path}) + if r.Error != nil { + log.Warn("git clone error", r.Error) + log.Error(r.Error) + } + if IsDirectory(fullpath) { // clone worked return nil @@ -166,7 +171,7 @@ func Clone(wdir string, path string) error { return err } log.Info("URL:", url) - shell.PathRun(fulldir, []string{"git", "clone", url, base}) + shell.PathRunRealtime(fulldir, []string{"git", "clone", url, base}) if IsDirectory(fullpath) { // clone worked return nil |
