From 716f0d3dad659ba3a0ce249bd3a69304ceb7b9c3 Mon Sep 17 00:00:00 2001 From: Anirudh Oppiliappan Date: Tue, 09 Sep 2025 08:18:22 +0000 Subject: [PATCH] knotserver/xrpc: set branches limit to 500 temporarily Signed-off-by: Anirudh Oppiliappan --- knotserver/xrpc/repo_branches.go | 14 ++++++++------ 1 file(s) changed, 8 insertion(s)(+), 6 deletion(s)(-) diff --git a/knotserver/xrpc/repo_branches.go b/knotserver/xrpc/repo_branches.go --- a/knotserver/xrpc/repo_branches.go +++ b/knotserver/xrpc/repo_branches.go @@ -20,12 +20,14 @@ cursor := r.URL.Query().Get("cursor") - limit := 50 // default - if limitStr := r.URL.Query().Get("limit"); limitStr != "" { - if l, err := strconv.Atoi(limitStr); err == nil && l > 0 && l <= 100 { - limit = l - } - } + // limit := 50 // default + // if limitStr := r.URL.Query().Get("limit"); limitStr != "" { + // if l, err := strconv.Atoi(limitStr); err == nil && l > 0 && l <= 100 { + // limit = l + // } + // } + + limit := 500 gr, err := git.PlainOpen(repoPath) if err != nil { -- tangled.sh