Skip to content

Commit

Permalink
fix: check if fetched commits are set
Browse files Browse the repository at this point in the history
  • Loading branch information
renatav committed Nov 1, 2024
1 parent 41fa63c commit a37d4bd
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions taf/updater/updater_pipeline.py
Original file line number Diff line number Diff line change
Expand Up @@ -1168,9 +1168,10 @@ def _update_state_for_initial_sync(self):
)
)
# append fetched commits
self.state.auth_commits_since_last_validated.extend(
self.state.update_handler.commits[1:]
)
if self.state.update_handler is not None and self.state.update_handler.commits:
self.state.auth_commits_since_last_validated.extend(
self.state.update_handler.commits[1:]
)
self.state.targets_data_by_auth_commits = (
self.state.users_auth_repo.targets_data_by_auth_commits(
self.state.auth_commits_since_last_validated
Expand Down

0 comments on commit a37d4bd

Please sign in to comment.