A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://stackoverflow.com/questions/74658100/commitizen-no-commit-found-with-range-origin-head-head below:

pre commit.com - commitizen: No commit found with range: 'origin/HEAD..HEAD'

I've recently started using commitizen in my day-to-day development, however I don't understand why I get the following error with the first commit to a new branch, ie:

...on current main branch...
git checkout -b fix/my-new-branch
...make some changes...
git commit -am "fix: did the thing"

commitizen check.........................................................Passed
commitizen check branch..................................................Failed
- hook id: commitizen-branch
- exit code: 3

No commit found with range: 'origin/HEAD..HEAD'

My pre-commit file looks like this:

---
repos:
  - repo: https://github.com/commitizen-tools/commitizen
    rev: v2.37.1
    hooks:
      - id: commitizen
      - id: commitizen-branch
        stages: [commit-msg]

Is there something I'm missing here?

origin  [email protected]:myuser/my_repo.git (fetch)
origin  [email protected]:myuser/my_repo.git (push)
 fix/my-new-branch
 * main

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4