Skip to content

Commit

Permalink
[gitlab] Fix ancestor computation for check_pkg_size
Browse files Browse the repository at this point in the history
  • Loading branch information
KSerrania committed Jan 8, 2025
1 parent 832149a commit 0bc7a50
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tasks/libs/package/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ def get_ancestor(ctx, package_sizes, on_main):
"""
ancestor = get_common_ancestor(ctx, "HEAD")
if not on_main and ancestor not in package_sizes:
return min(package_sizes, key=lambda x: package_sizes[x]['timestamp'])
return max(package_sizes, key=lambda x: package_sizes[x]['timestamp'])
return ancestor


Expand Down

0 comments on commit 0bc7a50

Please sign in to comment.