Skip to content

Commit

Permalink
hotfix: Order tags by timestamp on referenced commit.
Browse files Browse the repository at this point in the history
Need to figure out a good way to handle this.

Signed-off-by: Johannes Tegnér <johannes@jitesoft.com>
  • Loading branch information
Johannestegner committed May 25, 2022
1 parent 4a01925 commit 6ec838a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cc-gen/Commands/GenerateCommand.cs
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ public GenerateCommand()
string? toSha = null;

// We want to read from other way around (latest first)!
var allTags = repository.Tags.Reverse().ToList();
var allTags = repository.Tags.OrderBy(x => ((Commit)x.PeeledTarget).Committer.When).Reverse().ToList();

if (allTags.Count == 0)
{
Expand Down

0 comments on commit 6ec838a

Please sign in to comment.