Commit 0c745cf0eccd0569d1ebc7c49efbeb4c4ed20fd2

Thomas de Grivel 2022-01-26T11:47:22

fix repository show tag

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
diff --git a/lib/kmxgit_web/controllers/repository_controller.ex b/lib/kmxgit_web/controllers/repository_controller.ex
index 24e0b50..04ac84a 100644
--- a/lib/kmxgit_web/controllers/repository_controller.ex
+++ b/lib/kmxgit_web/controllers/repository_controller.ex
@@ -410,13 +410,14 @@ defmodule KmxgitWeb.RepositoryController do
     |> assign(:repo, repo)
     |> render("log.html")
   end
-  defp show_op(conn, :tag = op, %{tree: tree, git: git, org: org, path: path, repo: repo}) do
+  defp show_op(conn, :tag = op, %{tree: tree, git: git, org: org, repo: repo}) do
     git = git
-    |> git_put_tags(repo, conn, op, path)
+    |> git_put_tags(repo, conn, op, nil)
     tag = Enum.find(git.tags, fn tag -> tag.tag == tree end)
     conn
     |> assign_current_organisation(org)
     |> assign(:current_repository, repo)
+    |> assign(:path, nil)
     |> assign(:repo, repo)
     |> assign(:tag, tag)
     |> render("tag.html")