chore: updated error message when detectGitPath fails

Alec Lanter created

Change summary

repository/gogit.go | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

Detailed changes

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
 		}