-
Notifications
You must be signed in to change notification settings - Fork 35
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Do not work for sub folders #11
Comments
I have the same issue. My .git folder is tree levels higher than my package.json. Ik works if I change this line like @andsan const messageFilePath = "../../../" + getMsgFilePath(); |
@Simsteve7 |
I'm also experiencing this. package.json placed 3 levels down from the git project root. jira-prepare-commit-msg 1.6.0 |
Also experiencing this issue when using lerna - 3 levels down. |
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();
The text was updated successfully, but these errors were encountered: