Skip to content

Commit

Permalink
fix-display-appropriate-output-when-project-has-no-git-repo
Browse files Browse the repository at this point in the history
  • Loading branch information
rbob86 committed Aug 22, 2024
1 parent 474d539 commit b90b19f
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 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 Expand Up @@ -102,3 +104,4 @@ def explores(
}
)
return result

0 comments on commit b90b19f

Please sign in to comment.