1
0
mirror of https://github.com/jesseduffield/lazygit.git synced 2025-04-25 12:24:47 +02:00

Clean path

This commit is contained in:
Cristian Betivu 2023-08-16 20:55:54 +03:00
parent dd01639f57
commit d7b1deb465

View File

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