-
-
Notifications
You must be signed in to change notification settings - Fork 823
Abbreviate Git Directory Edge Cases #746
Copy link
Copy link
Open
Milestone
Description
Two edge cases not considered by original implementation (#720):
- If the current repo is bare, returns its parent directory.
Get-GitDirectoryinside a worktree currently returns the path to.git/worktrees/[name], which won't match the current path. I can think of two ways to resolve this:- Revise
Get-GitDirectoryto return the contents of.git/worktrees/[name]/gitdir. No idea what the downstream effects of this would be. - Check here if
$gitPathmatches.git/worktrees/; if it does, set$gitPathto the contents of$gitPath/gitdir
- Revise
Reactions are currently unavailable