mirror of
https://github.com/jesseduffield/lazygit.git
synced 2025-07-15 01:34:26 +02:00
Clean path
This commit is contained in:
@ -208,7 +208,7 @@ func getCurrentRepoGitDirPath(
|
|||||||
}
|
}
|
||||||
|
|
||||||
// confirm whether the next directory up is the worktrees directory
|
// 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" {
|
if path.Base(parent) == "worktrees" {
|
||||||
gitDirPath := path.Dir(parent)
|
gitDirPath := path.Dir(parent)
|
||||||
return gitDirPath, path.Dir(gitDirPath), nil
|
return gitDirPath, path.Dir(gitDirPath), nil
|
||||||
|
Reference in New Issue
Block a user