Skip to content

Tags mangled in CHANGELOG.md #1291

@mattmartini

Description

@mattmartini

Is there an existing issue for this?

  • I have searched the existing issues

Description of the bug

I use git tags of the form: version/1.2.3 or version/v2.4.6. Recently when I run git cliff > CHANGELOG.md the word version becomes ersion in the CHANGELOG.md file. For ecample:

Given a git log snip that looks like:

* 051ceac -  (tag: version/1.0.16) fix(errors) Allow multiple errors to be cleared (2 months ago)
[ersion/1.0.16] - 2025-08-21

🐛 Bug Fixes
 • Fix(errors) Allow multiple errors to be cleared

when it should be:

[version/1.0.16] - 2025-08-21

🐛 Bug Fixes
 • Fix(errors) Allow multiple errors to be cleared

Steps To Reproduce

Build: cargo install git-cliff
Run: git cliff > CHANGELOG.md

The problem occurs independent of running the command having a cliff.toml in the directory or not.

Expected behavior

The tags should be:
[version/1.0.16] - 2025-08-21

and not:
[ersion/1.0.16] - 2025-08-21

Screenshots / Logs

No response

Software information

  • Operating system: MacOS 15.6.1 (Sequioa)
  • Rust version: rustc 1.90.0 (1159e78c4 2025-09-14) (Homebrew)
  • Project version: git-cliff 2.10.1

Additional context

No response

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