Commit cc2368462beb76cd396b7e171cfc38f4a6d901bc

Thomas de Grivel 2024-07-18T19:25:17

fix repository_controller: git_put_release

1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/lib/kmxgit_web/controllers/repository_controller.ex b/lib/kmxgit_web/controllers/repository_controller.ex
index 9fff813..3082d42 100644
--- a/lib/kmxgit_web/controllers/repository_controller.ex
+++ b/lib/kmxgit_web/controllers/repository_controller.ex
@@ -745,7 +745,7 @@ defmodule KmxgitWeb.RepositoryController do
     git
   end
   defp git_put_release(git = %{valid: true}, repo, tree, conn) do
-    case Git.files(Repository.full_slug(repo) + "/release", "master", "release/#{tree}") do
+    case Git.files("#{Repository.full_slug(repo)}/release", "master", "release/#{tree}") do
       {:ok, []} -> git
       {:ok, files} ->
         release = files