From 931901521959e9111ce4093a03b06ac2ac71542f Mon Sep 17 00:00:00 2001 From: Athena Date: Tue, 10 Feb 2026 15:30:50 +0000 Subject: [PATCH] fix(bugseti): handle silent git fetch failure in submit.go Capture and log the error from `git fetch origin` in createBranch() instead of silently ignoring it. Warns the user they may be proceeding with stale data if the fetch fails. Fixes #62 Co-Authored-By: Claude Opus 4.6 --- internal/bugseti/submit.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/internal/bugseti/submit.go b/internal/bugseti/submit.go index fb15234..c27cbcb 100644 --- a/internal/bugseti/submit.go +++ b/internal/bugseti/submit.go @@ -177,7 +177,9 @@ func (s *SubmitService) createBranch(workDir, branch string) error { // Fetch latest from upstream cmd := exec.CommandContext(ctx, "git", "fetch", "origin") cmd.Dir = workDir - cmd.Run() // Ignore errors + if err := cmd.Run(); err != nil { + log.Printf("WARNING: git fetch origin failed in %s: %v (proceeding with potentially stale data)", workDir, err) + } // Create and checkout new branch cmd = exec.CommandContext(ctx, "git", "checkout", "-b", branch)