Skip to content

Errors if repository contains fewer than two commits #61

@Xunnamius

Description

@Xunnamius
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
  1. Have a repo with less than two commits
  2. npx commit-spell
  3. Error
Expected behavior
Additional context

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions