Commit Diff
- Commit:
a729e2888f2d81208a354bdd20fac750b38c9134
- From:
- Stefan Sperling <stsp@stsp.name>
- Via:
- Thomas Adam <thomas@xteddy.org>
- Date:
- Message:
- fall back to comparison by name when refs have the same timestamp This fixes an issue where some references were missing from lists of references sorted by timestamp.
- Actions:
- Patch | Tree
--- lib/reference.c +++ lib/reference.c @@ -837,6 +837,8 @@ got_ref_cmp_by_commit_timestamp_descending(void *arg, *cmp = 1; else if (ref2->committer_time < ref1->committer_time) *cmp = -1; + else + return got_ref_cmp_by_name(arg, cmp, ref1, ref2); return err; }