mirror of
https://github.com/dolthub/dolt.git
synced 2026-03-18 09:40:59 -05:00
dolt/go/cmd/git-dolt/utils/find_git_config_dir.go: Fix tiny misspelling in comment
This commit is contained in:
@@ -28,7 +28,7 @@ func FindGitConfigUnderRoot() (string, error) {
|
||||
// a directory named .git, returning its path if found, and an error if not.
|
||||
//
|
||||
// Both currentPath and terminalPath are assumed to be absolute paths. An error is returned
|
||||
// if currentPath is not a descendent of terminalPath.
|
||||
// if currentPath is not a descendant of terminalPath.
|
||||
func FindGitConfigDir(currentPath, terminalPath string) (string, error) {
|
||||
if !strings.HasPrefix(currentPath, terminalPath) {
|
||||
return "", fmt.Errorf("current path %s is not a descendent of terminal path %s", currentPath, terminalPath)
|
||||
|
||||
Reference in New Issue
Block a user