summaryrefslogtreecommitdiff
path: root/doClean.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2025-09-13 00:51:22 -0500
committerJeff Carr <[email protected]>2025-09-13 00:51:22 -0500
commit405ddb69941983798c99bc6d29f72d68d7ca02a7 (patch)
tree3035929339355bbcc546a0624a91227b0a38b447 /doClean.go
parentb5df8f2dad9ea63bffb4f2528937727c8f6dde12 (diff)
work on using repo.Reload() more smarter
Diffstat (limited to 'doClean.go')
-rw-r--r--doClean.go8
1 files changed, 2 insertions, 6 deletions
diff --git a/doClean.go b/doClean.go
index f072906..7dc0049 100644
--- a/doClean.go
+++ b/doClean.go
@@ -20,15 +20,11 @@ func checkRemoteBranches(repo *gitpb.Repo) error {
}
if repo.VerifyRemoteAndLocalBranches(repo.GetDevelBranchName()) {
} else {
- repo.Reload()
- me.forge.SetConfigSave(true)
- return log.Errorf("remote devel is out of sync with local")
+ return log.Errorf("remote devel is out of sync with local: todo: git pull or git fetch")
}
if repo.VerifyRemoteAndLocalBranches(repo.GetMasterBranchName()) {
} else {
- repo.Reload()
- me.forge.SetConfigSave(true)
- return log.Errorf("remote master is out of sync with local")
+ return log.Errorf("remote master is out of sync with local: todo: git pull or git fetch")
}
return nil
}