Skip to content

Commit

Permalink
chore: mypy issues
Browse files Browse the repository at this point in the history
  • Loading branch information
renatav committed Oct 2, 2024
1 parent 2fe312a commit 72dc843
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion taf/repositoriesdb.py
Original file line number Diff line number Diff line change
Expand Up @@ -227,7 +227,10 @@ def load_repositories(
excluded_target_globs=excluded_target_globs,
)
if commits is None or len(commits) == 0:
commits = [auth_repo.head_commit_sha()]
commit = auth_repo.head_commit_sha()
if commit is None:
return
commits = [commit]
if auth_repo.path in _repositories_dict:
for commit in commits:
if commit not in _repositories_dict[auth_repo.path]:
Expand Down

0 comments on commit 72dc843

Please sign in to comment.