summaryrefslogtreecommitdiffstats
path: root/pkg/commands
diff options
context:
space:
mode:
authorCristian Betivu <cbe@languagewire.com>2023-08-16 20:55:54 +0300
committerCristian Betivu <cbe@languagewire.com>2023-08-19 18:36:57 +0300
commitd7b1deb465e77b8839584690b75c077d7bdd38fe (patch)
tree131b741b6093dba0ce535266da3be65a99fab5f0 /pkg/commands
parentdd01639f57812955b1e8aec56c0a94314d17a39d (diff)
Clean path
Diffstat (limited to 'pkg/commands')
-rw-r--r--pkg/commands/git_commands/repo_paths.go2
1 files changed, 1 insertions, 1 deletions
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