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