ktlint-gradle icon indicating copy to clipboard operation
ktlint-gradle copied to clipboard

Improve git hook execution in other then main worktree

Open knobo opened this issue 3 years ago • 3 comments

The hook does not run when in other worktrees since .git is not located there.

knobo avatar Sep 07 '22 07:09 knobo

Are you able to add a unit test for this?

JLLeitschuh avatar Oct 04 '22 12:10 JLLeitschuh

Are there any other unit tests for the pre-comit hook?

knobo avatar Oct 05 '22 11:10 knobo

I have made tests similar to existing tests.

knobo avatar Oct 21 '22 08:10 knobo