Skip to content

Do not work for sub folders #11

@andsan

Description

@andsan

I have husky + this in the package file in a sub folder "ui", not in root of the repo. And it fails at the last step:

JIRA prepare commit msg > Error: Unable to read the file ".git/COMMIT_EDITMSG".

What is the issue? You should already know the git root from before? Not always assume that you are located in the root path.

To verify I changed this line quickly and then it works all the way:
const messageFilePath = "../" + getMsgFilePath();

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions