Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for git-worktree #89

Merged
merged 1 commit into from
Nov 16, 2019

Conversation

f440
Copy link
Contributor

@f440 f440 commented Nov 13, 2019

lefthook can't recognize git-worktree directory.

mkdir repo
cd repo
git init

lefthook install
git add lefthook.yml && git commit -m "Initial commit"

git worktree add -b worktree-test-branch ../repo2
cd ../repo2
touch test.txt && git add test.txt && git commit -m "Update" test.txt # error!

This PR gives git-worktree support to lefthook.

@Arkweid
Copy link
Collaborator

Arkweid commented Nov 13, 2019

Awesome @f440
Could you check the tests?

@Arkweid Arkweid merged commit 1a2e15c into evilmartians:master Nov 16, 2019
@f440
Copy link
Contributor Author

f440 commented Nov 16, 2019

Oh, I'm sorry about CI broken...

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.

None yet

2 participants