From b90b19f7f0ef7257bb6ceb2e458494007707c2c4 Mon Sep 17 00:00:00 2001 From: Ryan Bobrowski Date: Thu, 22 Aug 2024 14:57:06 +0000 Subject: [PATCH] fix-display-appropriate-output-when-project-has-no-git-repo --- henry/commands/analyze.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/henry/commands/analyze.py b/henry/commands/analyze.py index 5a054ad..bb454f5 100644 --- a/henry/commands/analyze.py +++ b/henry/commands/analyze.py @@ -32,7 +32,9 @@ def projects(self, *, id: Optional[str] = None) -> fetcher.TResult: assert isinstance(p.validation_required, bool) p_files = self.sdk.all_project_files(p.name) - if "/bare_models/" in cast(str, p.git_remote_url): + if p.git_remote_url is None: + git_connection_test_results = "No repo found" + elif "/bare_models/" in cast(str, p.git_remote_url): git_connection_test_results = "Bare repo, no tests required" else: git_connection_test_results = self.run_git_connection_tests( @@ -102,3 +104,4 @@ def explores( } ) return result +