Skip to content

commitlint as a hook throws a error #289

@dalisoft

Description

@dalisoft

Describe the bug

It throws a error when trying to integrate as a husky commit-msg/prepare-commit-msg hook

Content of husky either commit-msg or prepare-commit-msg hook

#!/bin/sh

./node_modules/.bin/commitlint --edit $1

Config

If you have any config file, please paste it below: No Config yet

Error message

Please paste the error message below:

commitlint --edit .git/COMMIT_EDITMSG
error: unexpected argument '.git/COMMIT_EDITMSG' found

Usage: commitlint [OPTIONS]

For more information, try '--help'.

Expected behavior

Working as expected

Version

# Run the following command
$ commitlint --version
commitlint-rs 0.1.9

Additional context

Add any other context about the problem here.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions