mirror of
https://github.com/JanDeDobbeleer/oh-my-posh.git
synced 2024-11-10 13:04:04 -08:00
fix(git): align .Dir with .PWD
no trailing /
This commit is contained in:
parent
199993b891
commit
4213be5190
|
@ -160,7 +160,7 @@ func (g *Git) shouldDisplay() bool {
|
||||||
}
|
}
|
||||||
|
|
||||||
// convert the worktree file path to a windows one when in wsl 2 shared folder
|
// convert the worktree file path to a windows one when in wsl 2 shared folder
|
||||||
g.Dir = strings.TrimSuffix(g.convertToWindowsPath(gitdir.Path), ".git")
|
g.Dir = strings.TrimSuffix(g.convertToWindowsPath(gitdir.Path), "/.git")
|
||||||
|
|
||||||
if !gitdir.IsDir {
|
if !gitdir.IsDir {
|
||||||
return g.hasWorktree(gitdir)
|
return g.hasWorktree(gitdir)
|
||||||
|
|
Loading…
Reference in a new issue