fix(git): convert realdir when we have a worktree

This commit is contained in:
Jan De Dobbeleer 2024-01-25 08:23:34 +01:00 committed by Jan De Dobbeleer
parent 765af60a0b
commit 4fb18aaac7

View file

@ -295,7 +295,12 @@ func (g *Git) shouldDisplay() bool {
g.setDir(gitdir.Path)
if !gitdir.IsDir {
return g.hasWorktree(gitdir)
if g.hasWorktree(gitdir) {
g.realDir = g.convertToWindowsPath(g.realDir)
return true
}
return false
}
g.workingDir = gitdir.Path