From d9ac658392cc09d42928f68a60b0e337f7dc7d04 Mon Sep 17 00:00:00 2001 From: Alec Lanter Date: Mon, 23 Jan 2023 10:12:46 -0600 Subject: chore: updated error message when detectGitPath fails --- repository/gogit.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'repository/gogit.go') diff --git a/repository/gogit.go b/repository/gogit.go index 649614fb..01eace6d 100644 --- a/repository/gogit.go +++ b/repository/gogit.go @@ -192,7 +192,7 @@ func detectGitPath(path string) (string, error) { dotContent = strings.TrimSpace(strings.TrimPrefix(dotContent, "gitdir: ")) return dotContent, nil } - return "", fmt.Errorf(".git exist but is not a directory") + return "", fmt.Errorf(".git exist but is not a directory or module/workspace file") } return filepath.Join(path, ".git"), nil } -- cgit