mirror of
https://github.com/JanDeDobbeleer/oh-my-posh.git
synced 2025-02-21 02:55:37 -08:00
fix(git): convert realdir when we have a worktree
This commit is contained in:
parent
765af60a0b
commit
4fb18aaac7
|
@ -295,7 +295,12 @@ func (g *Git) shouldDisplay() bool {
|
||||||
g.setDir(gitdir.Path)
|
g.setDir(gitdir.Path)
|
||||||
|
|
||||||
if !gitdir.IsDir {
|
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
|
g.workingDir = gitdir.Path
|
||||||
|
|
Loading…
Reference in a new issue