From d3e638e06723f3036e80a8f9488f42c02e96dfa4 Mon Sep 17 00:00:00 2001 From: Jan De Dobbeleer Date: Tue, 21 Dec 2021 20:30:32 +0100 Subject: [PATCH] fix(git): use actual path instead of empty -C operator relates to #1474 --- src/segment_git.go | 1 + 1 file changed, 1 insertion(+) diff --git a/src/segment_git.go b/src/segment_git.go index df492a65..7ecca3c9 100644 --- a/src/segment_git.go +++ b/src/segment_git.go @@ -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