From 4be7ade52e35c3f9af51c7e4842f96a2f22971a8 Mon Sep 17 00:00:00 2001 From: Jeff Carr Date: Tue, 7 Oct 2025 19:31:00 -0500 Subject: switch to me.sh.Exit() --- doGit.go | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) (limited to 'doGit.go') diff --git a/doGit.go b/doGit.go index 1bebbf2..f8335e5 100644 --- a/doGit.go +++ b/doGit.go @@ -4,6 +4,7 @@ package main import ( + "fmt" "os" "path/filepath" "strings" @@ -22,7 +23,7 @@ func doGit() error { fstr := "--format=\"%h %>(24)%ar %>(20)%an %s" cmd := []string{"git", "log", fstr} shell.RunVerbose(cmd) - okExit("") + me.sh.GoodExit("") } if argv.Git.Tag != nil { @@ -47,19 +48,19 @@ func doGit() error { } cmd := []string{"git", "who"} shell.RunVerbose(cmd) - okExit("") + me.sh.GoodExit("") } if argv.Git.Pull != nil { doPull(".config/wit") doPull("tools") - okExit("") + me.sh.GoodExit("") } if argv.Git.Push != nil { doPush(".config/wit") doPush("tools") - okExit("") + me.sh.GoodExit("") } return nil @@ -106,7 +107,8 @@ func doPush(wpath string) { } if err := repo.GitCommit(); err != nil { - badExit(err) + msg := fmt.Sprintf("repo.GitCommit() %s", repo.FullPath) + me.sh.BadExit(msg, err) } repo.RunRealtime([]string{"git", "push"}) -- cgit v1.2.3