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:
parent
58596ea00e
commit
82cc620f9d
1 changed files with 3 additions and 1 deletions
|
|
@ -141,7 +141,9 @@ func runPush(registryPath string, force bool) error {
|
||||||
succeeded++
|
succeeded++
|
||||||
} else {
|
} else {
|
||||||
// Check if this is a non-fast-forward error (diverged branch)
|
// 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"))
|
fmt.Printf(" %s %s: %s\n", warningStyle.Render("!"), r.Name, i18n.T("cmd.dev.push.diverged"))
|
||||||
divergedRepos = append(divergedRepos, r)
|
divergedRepos = append(divergedRepos, r)
|
||||||
} else {
|
} else {
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue