Skip to content

Improve git hook execution in other then main worktree#605

Open
knobo wants to merge 4 commits intoJLLeitschuh:mainfrom
knobo:master
Open

Improve git hook execution in other then main worktree#605
knobo wants to merge 4 commits intoJLLeitschuh:mainfrom
knobo:master

Conversation

@knobo
Copy link
Copy Markdown

@knobo knobo commented Sep 7, 2022

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

@knobo knobo changed the title Improve execution in other then main worktree Improve git hook execution in other then main worktree Sep 7, 2022
@JLLeitschuh
Copy link
Copy Markdown
Owner

Are you able to add a unit test for this?

@knobo
Copy link
Copy Markdown
Author

knobo commented Oct 5, 2022

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

@knobo
Copy link
Copy Markdown
Author

knobo commented Oct 21, 2022

I have made tests similar to existing tests.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants