From d7b1deb465e77b8839584690b75c077d7bdd38fe Mon Sep 17 00:00:00 2001 From: Cristian Betivu Date: Wed, 16 Aug 2023 20:55:54 +0300 Subject: [PATCH] Clean path --- pkg/commands/git_commands/repo_paths.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/commands/git_commands/repo_paths.go b/pkg/commands/git_commands/repo_paths.go index 912202ca2..a124fd18a 100644 --- a/pkg/commands/git_commands/repo_paths.go +++ b/pkg/commands/git_commands/repo_paths.go @@ -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