mirror of
https://github.com/zulip/zulip.git
synced 2025-11-05 06:23:38 +00:00
git: Fix nondeterministic ordering of commit authors.
This should fix the nondeterministic test failures introduced by
e7455e276b.
This commit is contained in:
@@ -190,7 +190,9 @@ def get_all_committers(commits_data):
|
||||
for commit in commits_data:
|
||||
committers[commit['name']] += 1
|
||||
|
||||
committers_items = sorted(list(committers.items()), key=lambda item: item[1], reverse=True) # type: List[Tuple[str, int]]
|
||||
# Sort by commit count, breaking ties alphabetically.
|
||||
committers_items = sorted(list(committers.items()),
|
||||
key=lambda item: (-item[1], item[0])) # type: List[Tuple[str, int]]
|
||||
committers_values = [c_i[1] for c_i in committers_items] # type: List[int]
|
||||
|
||||
if len(committers) > PUSH_COMMITTERS_LIMIT_INFO:
|
||||
|
||||
Reference in New Issue
Block a user