committed icon indicating copy to clipboard operation
committed copied to clipboard

Config file not supported?

Open BenLeadbetter opened this issue 1 year ago • 1 comments

Hi, nice tool!

I had a poke around and found the --config and --dump-config arguments to the committed exec. I tried out the following:

committed --dump-config .committed-config

And set my .pre-commit-config to read from this file:

- repo: https://github.com/crate-ci/committed
  rev: v1.0.20
  hooks:
  - id: committed
    args: [--config, .committed-config]

However, this makes the hook fail with the following error:

failed to parse revision specifier - Invalid pattern '.git/COMMIT_EDITMSG'; class=Invalid (3); code=InvalidSpec (-12)

Is this workflow not supported? Is there another way to specify configuration via my .pre-commit-config file? From the output of --dump-config, it looks like there's some nice configuration options there which I would love to try out.

Thanks

BenLeadbetter avatar Dec 03 '23 22:12 BenLeadbetter

Running directly, it works.

Something must be going wrong with pre-commit but unsure what.

epage avatar Dec 04 '23 17:12 epage

Without further information on a reproduction case, I'm going to go ahead and close this

epage avatar Sep 19 '24 16:09 epage