Commit bdb556b1e77d22f020e24e47967c881e36983f10

Thomas de Grivel 2024-07-19T15:40:59

inspect more 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 6be75ab..58079cd 100644
--- a/lib/kmxgit_web/controllers/repository_controller.ex
+++ b/lib/kmxgit_web/controllers/repository_controller.ex
@@ -746,7 +746,9 @@ defmodule KmxgitWeb.RepositoryController do
   end
   defp git_put_release(git = %{valid: true}, repo, tree, conn) do
     case Git.files("#{Repository.full_slug(repo)}/release", "master", "release/#{tree}") do
-      {:ok, []} -> git
+      {:ok, []} ->
+        IO.inspect("git_put_release: Git.files []")
+        git
       {:ok, files} ->
         release = files
         |> Enum.map(fn f = %{url: url} ->