Skip to content

commitzen modifies the output from pre-commit and makes it hard to see #197

@guihao-liang

Description

@guihao-liang

Description

my cz version is 1.22.2.

image

  1. the commit message color is hard to see
  2. the pre-commit color is altered, the original should be below:
    image
    Besides that, why the color from the subprocess is changed to red?

Possible Solution

restore the terminal color setting before delegating calls to subprocess.

Additional context

minimum reproducible setting:

repos:
  - repo: https://github.com/pre-commit/pre-commit-hooks
    rev: v2.4.0
    hooks:
      - id: trailing-whitespace

Related Issue

If applicable, add link to existing issue also help us know better.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions