summaryrefslogtreecommitdiff
path: root/main.go
diff options
context:
space:
mode:
Diffstat (limited to 'main.go')
-rw-r--r--main.go10
1 files changed, 10 insertions, 0 deletions
diff --git a/main.go b/main.go
index f756f92..ed371bb 100644
--- a/main.go
+++ b/main.go
@@ -8,8 +8,10 @@ package main
import (
"embed"
"strings"
+ "time"
"go.wit.com/lib/gui/prep"
+ "go.wit.com/lib/gui/shell"
"go.wit.com/lib/protobuf/forgepb"
"go.wit.com/lib/protobuf/gitpb"
"go.wit.com/log"
@@ -103,7 +105,15 @@ func main() {
log.Info("you are already in the normal state")
okExit("")
}
+ start := time.Now()
+ err := me.forge.DoAllCheckoutUser(argv.Force)
+ dur := time.Since(start)
+ log.Printf("Checked out %d user braches in %s\n", me.forge.Repos.Len(), shell.FormatDuration(dur))
+ if err != nil {
+ me.sh.BadExit("not everything on user braches", err)
+ }
setForgeMode(forgepb.ForgeMode_NORMAL)
+ okExit("")
log.Info("normal mode on")
okExit("")
}