Skip to content

Commit

Permalink
Use cache priority for file listings to avoid unnecessary traffic.
Browse files Browse the repository at this point in the history
  • Loading branch information
s-ludwig committed Sep 25, 2023
1 parent ec9c139 commit 2a28612
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion source/dubregistry/repositories/gitea.d
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ class GiteaRepository : Repository {
{
assert(path.absolute, "Passed relative path to listFiles.");
auto url = "/contents"~path.toString()~"?ref="~commit_sha;
auto ls = readJsonFromRepo(url).get!(Json[]);
auto ls = readJsonFromRepo(url, false, true).get!(Json[]);
RepositoryFile[] ret;
ret.reserve(ls.length);
foreach (entry; ls) {
Expand Down

0 comments on commit 2a28612

Please sign in to comment.