Skip to content

git merge-base error when using pre-commit hook #324

Answered by phitoduck
phitoduck asked this question in Q&A
Discussion options

You must be logged in to vote

Got this resolved. The default entrypoint for the darker pre-commit hook is darker --revision :PRE-COMMIT:. We just needed to override that in this file with darker --revision trunk. Simple as that :)

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by akaihola
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #312 on March 02, 2022 20:48.