You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When the .git directory is not in the same path than your execution directory, this error is thrown
$ pwd
/Users/javier/Documents/tdaf-pibot/paco
$ node_modules/.bin/conventional-changelog-lint -e
/Users/javier/Documents/tdaf-pibot/paco/node_modules/conventional-changelog-lint/distribution/cli.js:161
throw error;
^
Error: ENOENT: no such file or directory, open '.git/COMMIT_EDITMSG'
at Error (native)
in the example, the .git directory is /Users/javier/Documents/tdaf-pibot/.git but the node project with the package.json is in /Users/javier/Documents/tdaf-pibot/paco (one directory inside)
When the
.git
directory is not in the same path than your execution directory, this error is thrownin the example, the
.git
directory is/Users/javier/Documents/tdaf-pibot/.git
but the node project with thepackage.json
is in/Users/javier/Documents/tdaf-pibot/paco
(one directory inside)I think this can be solved by executing
git rev-parse --show-toplevel
for obtaining the current git directory and make an absolute path in https://github.com/marionebl/conventional-changelog-lint/blob/master/source/library/get-messages.js#L29WDYT?
The text was updated successfully, but these errors were encountered: