Problematic behavior
In brand new repos and/or repos with fewer than two commits, commit-spell fails with a git log error. Solution: don't check for previous commits when there are less than two.
Reproduction steps
- Have a repo with less than two commits
npx commit-spell
- Error
Expected behavior
Additional context