summaryrefslogtreecommitdiffstats
path: root/pkg/commands
diff options
context:
space:
mode:
authorCristian Betivu <cbe@languagewire.com>2023-08-16 21:09:15 +0300
committerCristian Betivu <cbe@languagewire.com>2023-08-19 18:36:57 +0300
commita2b2336173f05a119338f850377668c4579169a1 (patch)
tree0f3efddf92da06cfe49b464a9e8bf94a507c5302 /pkg/commands
parentd7b1deb465e77b8839584690b75c077d7bdd38fe (diff)
Stylistic changes
Diffstat (limited to 'pkg/commands')
-rw-r--r--pkg/commands/git_commands/repo_paths.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/pkg/commands/git_commands/repo_paths.go b/pkg/commands/git_commands/repo_paths.go
index a124fd18a..8bae26258 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(path.Clean((worktreeGitPath)))
+ parent := path.Dir(path.Clean(worktreeGitPath))
if path.Base(parent) == "worktrees" {
gitDirPath := path.Dir(parent)
return gitDirPath, path.Dir(gitDirPath), nil
@@ -223,7 +223,7 @@ func getCurrentRepoGitDirPath(
// If this error causes issues, we could relax the constraint and just always
// return the path
- return "", "", errors.Errorf("could not find git dir for %s: path '%s' is not under `worktrees` or `modules` directories.", currentPath, worktreeGitPath)
+ return "", "", errors.Errorf("could not find git dir for %s: the path '%s' is not under `worktrees` or `modules` directories.", currentPath, worktreeGitPath)
}
// takes a path containing a symlink and returns the true path