summaryrefslogtreecommitdiff
path: root/doGit.go
diff options
context:
space:
mode:
Diffstat (limited to 'doGit.go')
-rw-r--r--doGit.go9
1 files changed, 9 insertions, 0 deletions
diff --git a/doGit.go b/doGit.go
index 167342c..a886a3b 100644
--- a/doGit.go
+++ b/doGit.go
@@ -8,6 +8,7 @@ import (
"path/filepath"
"strings"
+ "go.wit.com/lib/fhelp"
"go.wit.com/lib/gui/shell"
"go.wit.com/lib/protobuf/gitpb"
"go.wit.com/log"
@@ -36,6 +37,14 @@ func doGit() error {
}
if argv.Git.Who != nil {
+ if _, err := fhelp.CheckCmd("git-who"); err != nil {
+ if fhelp.QuestionUser("install git-who") {
+ log.Info("go install -v -x github.com/sinclairtarget/git-who@latest")
+ } else {
+ log.Info("not installing")
+ }
+ me.sh.GoodExit("git who should be installed")
+ }
cmd := []string{"git", "who"}
shell.RunVerbose(cmd)
okExit("")