diff options
| author | Jeff Carr <[email protected]> | 2024-11-08 06:44:08 -0600 | 
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2024-11-08 06:44:08 -0600 | 
| commit | c4d4a25800a3a1e8331a0d79717cf8c8261e11d4 (patch) | |
| tree | 6bb937e8b52f6612b08bcac2350ba95a9e0107e8 | |
| parent | 8d55a8316a0bb22353cda4bed88ed466a8df326b (diff) | |
| -rw-r--r-- | dumpVersions.go | 3 | ||||
| -rw-r--r-- | listWindow.go | 8 | 
2 files changed, 5 insertions, 6 deletions
diff --git a/dumpVersions.go b/dumpVersions.go index f02f11f..ff67c75 100644 --- a/dumpVersions.go +++ b/dumpVersions.go @@ -23,7 +23,8 @@ func DumpVersions(view *repolist.RepoList) {  				continue  			}  			lastTag := r.LastTag() -			_, out := r.Status.RunCmd([]string{"git", "log", "-1", "--format=%at", lastTag}) +			result := r.Status.Run([]string{"git", "log", "-1", "--format=%at", lastTag}) +			out := strings.Join(result.Stdout, "\n")  			out = strings.TrimSpace(out)  			// Convert the string to an integer diff --git a/listWindow.go b/listWindow.go index 2f09c60..a455ed3 100644 --- a/listWindow.go +++ b/listWindow.go @@ -164,11 +164,9 @@ func downloadRepo(path string) bool {  	goSrcDir := filepath.Join(homeDir, "go/src")  	cmd :=  []string{"go-clone", "--recursive", "--no-work", "--go-src", path} -	err := shell.NewRun(goSrcDir, cmd) -	if err != nil { -		log.Info("go-clone failed") -		log.Info("err =", err) -		// log.Info("output =", output) +	r := shell.PathRun(goSrcDir, cmd) +	if r.Error != nil { +		log.Info("go-clone failed error", r.Error)  		return false  	}  	log.Info("go-clone worked")  | 
