Skip to content

specifying option --from causes "fatal: not a git repository" #11

@dmytrob

Description

@dmytrob

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions