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 blaming inside git worktrees #19

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

fedemengo
Copy link

@fedemengo fedemengo commented May 14, 2022

This closes #17.
I already tested it on my end, please let me know if there are problems

The problem with worktree was cause by a mismatch between file and git object paths.

Without worktrees we have a git object some/file at path/to/repo/.git/some/file. By dropping the last dir here and here we get the correct file path path/to/repo/some/file.

With worktrees we have an additional dir path/to/repo/.git/worktrees/<worktree-name>/some/file, the fix follows from that.

dont cd inside dir

fix worktree?

fix worktree??

minor

fix quotes
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.

doesn't work inside git-worktrees?
1 participant