diff options
| author | Jeff Carr <[email protected]> | 2025-10-07 19:31:00 -0500 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2025-10-07 19:31:00 -0500 |
| commit | 4be7ade52e35c3f9af51c7e4842f96a2f22971a8 (patch) | |
| tree | 4ce0683361bafcd9a4a3f1aee94bfb4ab252f463 /doGit.go | |
| parent | 48bcafb2e388295567476f35e45b814f71692061 (diff) | |
switch to me.sh.Exit()v0.1.25
Diffstat (limited to 'doGit.go')
| -rw-r--r-- | doGit.go | 12 |
1 files changed, 7 insertions, 5 deletions
@@ -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"}) |
