Skip to content

Fix: getBranchCommits broken commit parsing#35

Open
vpalcar wants to merge 1 commit intomainfrom
fix/getBranchCommits-parsing
Open

Fix: getBranchCommits broken commit parsing#35
vpalcar wants to merge 1 commit intomainfrom
fix/getBranchCommits-parsing

Conversation

@vpalcar
Copy link
Copy Markdown
Owner

@vpalcar vpalcar commented Mar 26, 2026

Summary

  • getBranchCommits passed a custom --format=%H|%s|%an|%aI string to simple-git's .log(), which doesn't parse it — the entire pipe-delimited line ended up in the hash field with empty message, author, and date
  • Switched to simple-git's default format (same approach as getCommitsBetween)

Test plan

  • Verify getBranchCommits returns correct hash, message, author, and date fields
  • Verify getCommitsBetween still works as before

🤖 Generated with Claude Code

…en custom format

The custom --format=%H|%s|%an|%aI passed to simple-git's .log() caused the
entire pipe-delimited line to land in the hash field, leaving message, author,
and date empty. Use simple-git's default format (same as getCommitsBetween).

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant