diff options
| author | Jeff Carr <[email protected]> | 2025-09-13 05:33:11 -0500 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2025-09-13 05:33:11 -0500 |
| commit | 0f895e83e62749bb1d716033f5f300d9d1c548ac (patch) | |
| tree | f0d29c4b96f998469cefe140006c4e0a20a361aa /branches.go | |
| parent | ce4af38e8b7f05a6d8b48bc957091de0b0b0a9e7 (diff) | |
use config GO library
Diffstat (limited to 'branches.go')
| -rw-r--r-- | branches.go | 17 |
1 files changed, 8 insertions, 9 deletions
diff --git a/branches.go b/branches.go index a503a96..0a13361 100644 --- a/branches.go +++ b/branches.go @@ -1,10 +1,10 @@ package forgepb import ( - "os" "path/filepath" "time" + "go.wit.com/lib/config" "go.wit.com/lib/gui/shell" "go.wit.com/lib/protobuf/gitpb" "go.wit.com/log" @@ -111,13 +111,12 @@ func rillCheckoutMaster(repo *gitpb.Repo) error { // 'giterr' means something is very wrong with this repo if repo.GetMasterVersion() == "giterr" { repo.CheckoutMaster() - log.Info("master == giterr. BAD REPO", repo.GetFullPath()) - log.Info("master == giterr. BAD REPO", repo.GetFullPath()) - log.Info("master == giterr. BAD REPO", repo.GetFullPath()) - cmd := []string{"git", "checkout", "main"} // todo: figure out main - repo.RunVerbose(cmd) - os.Exit(-1) - return nil + log.Info(repo.GetFullPath(), "master == giterr. BAD REPO") + log.Info(repo.GetFullPath(), "master == giterr. BAD REPO git describe --tags master --always") + log.Info(repo.GetFullPath(), "master == giterr. BAD REPO. todo: figure this out in rillCheckoutMaster()") + // cmd := []string{"git", "checkout", "main"} // todo: figure out main + // repo.RunVerbose(cmd) + return log.Errorf("master version can not be determined") } if repo.GetCurrentBranchName() == repo.GetMasterBranchName() { // repo is already on master @@ -245,7 +244,7 @@ func (f *Forge) DoAllCheckoutDevelNew(force bool) error { counter += 1 } log.Info("reloaded", counter, "repos") - f.configSave = true + config.SetChanged("repos", true) return nil } |
