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
Problematic behavior
In brand new repos and/or repos with fewer than two commits,
commit-spellfails with agit logerror. Solution: don't check for previous commits when there are less than two.Reproduction steps
npx commit-spellExpected behavior
Additional context