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

Fix hook installation when in a git worktree #206

Merged
merged 1 commit into from
Mar 4, 2022

Conversation

mstory21
Copy link
Contributor

@mstory21 mstory21 commented Mar 1, 2022

In a git worktree .git is actually a file that points to the location
of the woktree .git directory. To get the right location for commit
hook installation the --git-common-dir flag needs to be used instead.

In a git worktree .git is actually a file that points to the location
of the woktree .git directory.  To get the right location for commit
hook installation the --git-common-dir flag needs to be used instead.

commit-id:e3cb2587
@ejoffe
Copy link
Owner

ejoffe commented Mar 4, 2022

@mstory21 : Thank you for fixing this!
btw: I'm an Arista alumni :)

@ejoffe ejoffe merged commit a8d0e08 into ejoffe:master Mar 4, 2022
adambenhassen pushed a commit to adambenhassen/spr that referenced this pull request Jun 6, 2022
ejoffe pushed a commit that referenced this pull request Jun 6, 2022
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