Skip to content

gitlint: error on using "args" #641

@pbek

Description

@pbek

When using the gitlint commit hook with custom arguments, then you will get an error message like:

Error: Invalid value for '--msg-filename': '-c': No such file or directory

Example

git-hooks.hooks.gitlint.args = ["-c" "general.ignore=B6" "-c" "title-max-length.line-length=120"];

Workaround

Overriding entry like:

git-hooks.hooks.gitlint.entry = "${pkgs.gitlint}/bin/gitlint -c general.ignore=B6 -c title-max-length.line-length=120 --staged --msg-filename";

@bmrips

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