Skip to content

Commit

Permalink
fix: display appropriate output when no repo found for project
Browse files Browse the repository at this point in the history
  • Loading branch information
rbob86 committed Aug 22, 2024
1 parent a7122ad commit 955bb57
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion henry/commands/analyze.py
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down

0 comments on commit 955bb57

Please sign in to comment.