fix(git): handle CRLF output lines

Summary

  • normalize CRLF output before splitting Git command results into lines
  • preserve existing LF, empty-output, and isolated carriage-return behavior
  • cover the parser contract with ten focused table-driven cases

Testing

  • go test -count=1 ./internal/git -run '^TestOutputLines$' -v
  • go test -count=1 ./internal/git/...
  • Windows amd64 cross-compilation of the internal/git test binary
  • pre-commit and pre-push hooks, including build, lint, changed-package tests, and generated-content checks

Closes #6345 (closed)

AI assistance: OpenAI Codex helped implement, test, and review this change.

Edited by Tien Ray

Merge request reports

Loading