summaryrefslogtreecommitdiff
path: root/doGit.go
diff options
context:
space:
mode:
Diffstat (limited to 'doGit.go')
-rw-r--r--doGit.go12
1 files changed, 7 insertions, 5 deletions
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"})