diff --git a/repository/gogit.go b/repository/gogit.go index 649614fbf67cfb20ea8b0601860968d704bf7a20..01eace6dedd2b8f63bc4bfa53124ee819005074d 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 }