Commit bd6134defd4f1140af318db9d82f954ceadc0539

Thomas de Grivel 2022-01-15T15:22:21

reverse tags order

1
2
3
4
5
6
7
8
9
10
11
12
diff --git a/lib/kmxgit_web/controllers/repository_controller.ex b/lib/kmxgit_web/controllers/repository_controller.ex
index e14003b..7074aa3 100644
--- a/lib/kmxgit_web/controllers/repository_controller.ex
+++ b/lib/kmxgit_web/controllers/repository_controller.ex
@@ -317,6 +317,7 @@ defmodule KmxgitWeb.RepositoryController do
           url = Routes.repository_path(conn, :show, Repository.owner_slug(repo), Repository.splat(repo) ++ ["_#{op || :tree}", tag] ++ (if path, do: String.split(path, "/"), else: []))
           {:tag, tag, url}
         end)
+        |> Enum.reverse()
         %{git | tags: tags, trees: git.trees ++ tag_trees}
       {:error, status} -> %{git | status: status, valid: false}
     end