Skip to content

Single configuration file detected as duplicate since 4.11.2 #1787

Closed

Description

@ptrckmllr

Description

Apparently #1773 introduced a bug.
When running in a git repository with only a single .cz.toml file at the root, it is detected as a duplicate:

Steps to reproduce

In an empty directory run

pip install -U commitizen==4.11.2
touch .cz.toml 
git init .
cz version

Outputs the wrong error message

Multiple config files detected: .cz.toml, .cz.toml. Using config file: '.cz.toml'.
4.11.2

Current behavior

One file is detected twice.

Desired behavior

File should only be detected once.

Screenshots

No response

Environment

Commitizen Version: 4.11.2
Python Version: 3.14.2 (main, Jan 7 2026, 12:38:13) [Clang 17.0.0 (clang-1700.6.3.2)]
Operating System: Darwin

Activity

  1. changed the title [-]Duplicate configuration file detected after 4.11.2[/-] [+]Single configuration file detected as duplicate since 4.11.2[/+] on Jan 12, 2026
  2. added theissue type on Jan 12, 2026
  3. Lee-W commented on Jan 12, 2026

    @Lee-W
    Member

    Thanks for reporting it! Just verified this is a valid bug

  4. bearomorphism commented on Jan 13, 2026

    @bearomorphism
    Collaborator

    interesting. will fix it asap

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions