marcocesarato / php-conventional-changelog

A PHP tool built to generate a changelog from a project's commit messages and metadata following the conventionalcommits.org and automate versioning with semver.org.
GNU General Public License v3.0
230 stars 32 forks source link

fatal: ambiguous argument '0.0.0...HEAD': unknown revision or path not in the working tree. #71

Open grandeljay opened 1 year ago

grandeljay commented 1 year ago

Hey,

first off thank you for making and maintaining this!

When I run composer changelog I get the following output:

> conventional-changelog

conventional-changelog 1.17.0
=============================

Checking environment requirements
 ✓ Commands executions enabled
 ✓ Git detected correctly
 ✓ Git version detected: 2.43.0
 ✓ Valid git worktree directory: /path/to/grandeljay/modified-consistent-flags
 ✓ Valid git remote repository url: https://github.com/grandeljay/modified-consistent-flags

Generating changelog

Summary
-------

 [OK] Changelog generated!

 > Changelog file: CHANGELOG.md
fatal: ambiguous argument '0.0.0...HEAD': unknown revision or path not in the working tree.
Use '--' to separate paths from revisions, like this:
'git <command> [<revision>...] -- [<file>...]'

Is it due to my tags not starting with a v? I am using some more external tools and one them requires my git tags to be just numbers and dots. I already have 10 tags set.

Any ideas?

vandres commented 7 months ago

Same here. I wanted to use the package for an existing repository which already has tags. But I used "1.0.0", "1.0.1" etc.