mirror of
https://github.com/jesseduffield/lazygit.git
synced 2026-09-13 00:56:25 -04:00
Clean path
This commit is contained in:
parent
dd01639f57
commit
d7b1deb465
|
|
@ -208,7 +208,7 @@ func getCurrentRepoGitDirPath(
|
|||
}
|
||||
|
||||
// confirm whether the next directory up is the worktrees directory
|
||||
parent := path.Dir(worktreeGitPath)
|
||||
parent := path.Dir(path.Clean((worktreeGitPath)))
|
||||
if path.Base(parent) == "worktrees" {
|
||||
gitDirPath := path.Dir(parent)
|
||||
return gitDirPath, path.Dir(gitDirPath), nil
|
||||
|
|
|
|||
Loading…
Reference in a new issue