mirror of
https://github.com/jesseduffield/lazygit.git
synced 2025-04-25 12:24:47 +02: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…
x
Reference in New Issue
Block a user