Skip to content

Commit

Permalink
AluRepo.sync: skip empty revisions (#79)
Browse files Browse the repository at this point in the history
  • Loading branch information
dato authored Sep 4, 2024
1 parent b983c08 commit ed495b5
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions algorw/corrector/alu_repos.py
Original file line number Diff line number Diff line change
Expand Up @@ -150,6 +150,8 @@ def sync(
for commit in reversed(pending_commits):
entrega_tree = commit.tree.join(entrega_relpath)
tree_contents = tree_to_github(entrega_tree, target_subdir, repo)
if not tree_contents:
continue
entrega_files = set(tree_contents.keys())
tree_elements = list(tree_contents.values())
tree_elements.extend(
Expand Down

0 comments on commit ed495b5

Please sign in to comment.