mirror of
https://github.com/JanDeDobbeleer/oh-my-posh.git
synced 2024-12-28 20:39:40 -08:00
fix(git): use actual path instead of empty -C operator
relates to #1474
This commit is contained in:
parent
b400f05555
commit
d3e638e067
|
@ -116,6 +116,7 @@ func (g *git) enabled() bool {
|
|||
if gitdir.isDir {
|
||||
g.gitWorkingFolder = gitdir.path
|
||||
g.gitRootFolder = gitdir.path
|
||||
g.gitWorktreeFolder = strings.TrimSuffix(gitdir.path, ".git")
|
||||
return true
|
||||
}
|
||||
// handle worktree
|
||||
|
|
Loading…
Reference in a new issue