Description
addCoAuthorToGitCommit relies on a regex that requires the commit message passed to -m to be quoted:
const messagePattern = /(-m\s+)(['"])((?:\\.|[^\\])*?)(\2)/;
This matches -m "msg" or -m 'msg', but fails for valid Git commands like -m msg (single-word messages).
Impact
- Co-author attribution is silently skipped for valid git commits
- Feature behaves inconsistently depending on commit message format