From 63ab0c9e8721cd62e4a6ed970f9a1da6df0b6fd3 Mon Sep 17 00:00:00 2001 From: Jeff Carr Date: Mon, 13 Oct 2025 05:44:06 -0500 Subject: more debugging git potty problems --- doDirty.go | 5 ----- doFix.go | 8 ++++++++ 2 files changed, 8 insertions(+), 5 deletions(-) diff --git a/doDirty.go b/doDirty.go index 203d20c..702302a 100644 --- a/doDirty.go +++ b/doDirty.go @@ -23,8 +23,3 @@ func getDirty() (*gitpb.Repos, string, error) { found := me.forge.CheckDirty() return found, "", nil } - -func getPorcelain() (string, error) { - s, err := me.forge.Repos.CheckPorcelain() - return s, err -} diff --git a/doFix.go b/doFix.go index 971bf2f..7249dd5 100644 --- a/doFix.go +++ b/doFix.go @@ -10,6 +10,11 @@ import ( "go.wit.com/log" ) +func getPorcelain() (string, error) { + s, err := me.forge.Repos.CheckPorcelain() + return s, err +} + // is every repo on the devel branch? func doFix() (string, error) { var s string @@ -36,12 +41,15 @@ func doFix() (string, error) { if argv.Fixer.Porcelain != nil { s, err = getPorcelain() + log.Info("GET PORCELAIN SENT BACK", s, err) for repo := range me.forge.Repos.IterByFullPath() { curbranch := repo.GetCurrentBranchName() if repo.IsLocalBranch(curbranch) { + log.Info(repo.FullPath, "SEEMS TO HAVE A '", curbranch, "' LOCAL BRANCH") continue } if repo.IsRemoteBranch(curbranch) { + log.Info(repo.FullPath, "SEEMS TO HAVE A '", curbranch, "' REMOTE BRANCH") continue } log.Info("curbranch is doesn't exist. this'll cause all sorts of problems", curbranch, repo.FullPath) -- cgit v1.2.3