Files
fusion/.changeset/fix-no-index-diff-exit1.md
gsxdsm 012714430b fix(dashboard): accept git diff --no-index exit code 1 with stdout
`git diff --no-index` exits 1 when files differ — that's the success case for synthetic untracked-file diffs, not an error. Use spawn directly so we can resolve on exit 0 or 1, independent of how callers (or test mocks) wrap execFile / promisify.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-05-02 17:25:30 -07:00

348 B

@fusion/dashboard
@fusion/dashboard
patch

Fix git diff --no-index calls treating exit code 1 as an error in the dashboard git-routes. --no-index exits 1 when files differ — that's the success case for synthetic untracked-file diffs. Switched to spawn so we accept exit 0 and 1 with stdout, independent of how callers wrap execFile/promisify.