Commit 751a44b4b2ee399dc5eb85c8bd6e28db9b0fa9f8

Thomas de Grivel 2024-07-19T15:47:10

inspect less git_put_release

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
diff --git a/lib/kmxgit_web/controllers/repository_controller.ex b/lib/kmxgit_web/controllers/repository_controller.ex
index 1b32ac1..57f9a7d 100644
--- a/lib/kmxgit_web/controllers/repository_controller.ex
+++ b/lib/kmxgit_web/controllers/repository_controller.ex
@@ -747,10 +747,8 @@ defmodule KmxgitWeb.RepositoryController do
   defp git_put_release(git = %{valid: true}, repo, tree, conn) do
     case Git.files("#{Repository.full_slug(repo)}/release", "master", "#{tree}") do
       {:ok, []} ->
-        IO.inspect("git_put_release: Git.files []")
         git
       {:ok, files} ->
-        IO.inspect("git_put_release: Git.files #{files}")
         release = files
         |> Enum.map(fn f = %{url: url} ->
           %{f | url: Routes.repository_path(conn, :show, Repository.owner_slug(repo), Repository.splat(repo) ++ ["release", "_blob", "master" | String.split(url, "/")])}