summaryrefslogtreecommitdiff
path: root/doCheckout.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2025-01-20 03:30:58 -0600
committerJeff Carr <[email protected]>2025-01-20 03:30:58 -0600
commit6386bc48267261c17ee591b9341e05b2f21fa727 (patch)
treebfcbe21dd3e06fe1ab3af6f64641423ebacee0cc /doCheckout.go
parent6d047647497c1ad7315e727084a15194f0126ed9 (diff)
Diffstat (limited to 'doCheckout.go')
-rw-r--r--doCheckout.go5
1 files changed, 3 insertions, 2 deletions
diff --git a/doCheckout.go b/doCheckout.go
index 29a5fe3..7f9a6fa 100644
--- a/doCheckout.go
+++ b/doCheckout.go
@@ -208,8 +208,9 @@ func doAllCheckoutMaster() error {
me.forge.ConfigSave()
}
- if total, count, nope, err := IsEverythingOnMaster(); err != nil {
- log.Printf("Master branch check. %d total repos. (%d ok) (%d not on master branch) (%s)\n", total, count, nope, shell.FormatDuration(time.Since(now)))
+ total, count, nope, err := IsEverythingOnMaster()
+ log.Printf("Master branch check. %d total repos. (%d ok) (%d not on master branch) (%s)\n", total, count, nope, shell.FormatDuration(time.Since(now)))
+ if err != nil {
// display all repos not on master
me.found = new(gitpb.Repos)
all := me.forge.Repos.SortByFullPath()