Commit d77d5d9643ca7d0eefdacc0c5dab1881acc6041b

Thomas de Grivel 2022-01-15T15:39:29

fix log

1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/lib/kmxgit_web/templates/repository/log.html.heex b/lib/kmxgit_web/templates/repository/log.html.heex
index 00df25a..5b01450 100644
--- a/lib/kmxgit_web/templates/repository/log.html.heex
+++ b/lib/kmxgit_web/templates/repository/log.html.heex
@@ -10,7 +10,7 @@
     <div class="col">
       <%= if @path do %>
         <hr/>
-        <h2><%= link @path, to: Routes.repository_path(@conn, :show, Repository.owner_slug(@repo), Repository.splat(@repo, ["_tree", @branch] ++ String.split(@path, "/"))) %></h2>
+        <h2><%= link @path, to: Routes.repository_path(@conn, :show, Repository.owner_slug(@repo), Repository.splat(@repo, ["_tree", @tree] ++ String.split(@path, "/"))) %></h2>
       <% end %>
 
       <%= render("show_branch.html", assigns) %>