specifying option `--from` causes "fatal: not a git repository"
Opened this issue · 0 comments
dmytrob commented
Hi,
I am trying to run docker container and it works if I do not specify any options
git log -1 --pretty=%B | docker run --rm -i extenda/commitlint
⧗ input: WIP: More progress adapating unit tests.
✖ subject may not end with full stop [subject-full-stop]
✖ type must be lower-case [type-case]
✖ type must be one of [build, chore, ci, docs, feat, fix, improvement, perf, refactor, revert, style, test] [type-enum]
But when I try to run with option from
it fails
docker run --rm -i extenda/commitlint --from 096a1ea7
/work/node_modules/@commitlint/cli/lib/cli.js:124
throw err;
^
Error: fatal: not a git repository (or any of the parent directories): .git
at DestroyableTransform._transform (/work/node_modules/git-raw-commits/index.js:83:30)
at DestroyableTransform.Transform._read (/work/node_modules/readable-stream/lib/_stream_transform.js:184:10)
at DestroyableTransform.Transform._write (/work/node_modules/readable-stream/lib/_stream_transform.js:172:83)
at doWrite (/work/node_modules/readable-stream/lib/_stream_writable.js:428:64)
at writeOrBuffer (/work/node_modules/readable-stream/lib/_stream_writable.js:417:5)
at DestroyableTransform.Writable.write (/work/node_modules/readable-stream/lib/_stream_writable.js:334:11)
at Socket.ondata (_stream_readable.js:708:22)
at Socket.emit (events.js:327:22)
at addChunk (_stream_readable.js:297:12)
at readableAddChunk (_stream_readable.js:269:11)
I am 100% sure I run this command in a valid git repository.
Any Idea how to fix it or use in a correct way?
Thanks and best regards.