chore(push): add debug logging for non-fast-forward detection

Temporary debug output to diagnose branch divergence detection issues.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
Snider 2026-01-30 07:59:41 +00:00
parent 58596ea00e
commit 82cc620f9d

View file

@ -141,7 +141,9 @@ func runPush(registryPath string, force bool) error {
succeeded++
} else {
// Check if this is a non-fast-forward error (diverged branch)
if git.IsNonFastForward(r.Error) {
isNFF := git.IsNonFastForward(r.Error)
fmt.Fprintf(os.Stderr, "[DEBUG] IsNonFastForward=%v, err=%q\n", isNFF, r.Error)
if isNFF {
fmt.Printf(" %s %s: %s\n", warningStyle.Render("!"), r.Name, i18n.T("cmd.dev.push.diverged"))
divergedRepos = append(divergedRepos, r)
} else {