-
Notifications
You must be signed in to change notification settings - Fork 905
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
Error: ENOENT: no such file or directory, open 'F:\Flat Projects\aquasoft\$GIT_PARAMS' on Windows #103
Comments
Reading the paths in the error message I guess you are on a Windows machine, right? Could you try with |
Hi, yes... Still gives the same error. I also tried with I put a And this is my I deleted the file However, I do not know what happens with the $GIT_PARAMS variable in windows. |
It seems that there are problems using With
And in |
The I do not have access to win32 machines very often, so this is hard to test for me.
should be sufficient. |
Yes I am using I leave this issue open? For my part I will investigate to see what solution can be given to the use of the variable Thank you very much @marionebl |
Yes, let's leave this open for now. We should check how to pass the path to the git commit edit message from |
Also failed with this error in git bash on windows |
I still get the same error and System: Window 7 x64 |
@SangKa: Does |
Unfortunately no, so I got here. |
Okay, we'll have to implement a rather grungy fix for this, along the lines of function normalizeEdit(edit) {
if (typeof edit === 'boolean') {
return edit;
}
if (edit === '$GIT_PARARMS' || edit === '%GIT_PARAMS%') {
if (!'GIT_PARAMS' in process.env) {
throw new Error(`Received ${edit} as value for -e | --edit, but GIT_PARAMS is not available globally.`);
}
return process.env.GIT_PARAMS;
}
return edit;
} |
|
|
For what it's worth, |
@kumarharsh Would you consider contributing a the fix for this as outlined via https://github.com/marionebl/commitlint/issues/103#issuecomment-346318328? This would spare you from creating the js proxy file you mentioned and benefit other users down the line. |
@Marionbel - done! |
Released via 5.2.3 |
…itlint chore: execute commitlint on commit-msg and not pre-commit
Hello, I am presented with this error when calling the script
"commitmsg ":"commitlint -e $GIT_PARAMS"
.I do not know if any other configuration is required that I do not know.
I hope you can help me, and thank you very much in advance.
The text was updated successfully, but these errors were encountered: