Skip to content

Container error fatal: --local can only be used inside a git repository #56

Closed
@Michele-Alberti

Description

@Michele-Alberti

Description
One of my workflows based on commitizen-action is now returning the following error:
image

It used to work properly and the yaml configuration file for the workflow was not subjected to changes when the issue occurred.

I have already tested that the error is raised for both commitizen-action@0.15.1 and commitizen-action@0.16.0.

The only step before commitizen-tools/commitizen-action@0.15.1 is actions/checkout@v3.

References
A similar issue is reported in peter-evans/create-pull-request#1170 and actions/checkout#760.

Docker image update
I've noticed that the image python:3.8 on DockerHub (used by the Dockerfile) was updated just before the first failure of the above-mentioned workflow.
According to the first reference, this issue may be related to Git version: a building process based on different images may explain why the workflow was successful and then failed in two consequent runs, with no configuration changes (and within a few hours of each other).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions