fix(git): use actual path instead of empty -C operator

relates to #1474
This commit is contained in:
Jan De Dobbeleer 2021-12-21 20:30:32 +01:00 committed by Jan De Dobbeleer
parent b400f05555
commit d3e638e067

View file

@ -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