forked from tangled.org/core
this repo has no description

knotserver/xrpc: set branches limit to 500 temporarily

Signed-off-by: Anirudh Oppiliappan <anirudh@tangled.sh>

anirudh.fi 716f0d3d 2a1dbd45

verified
Changed files
+8 -6
knotserver
+8 -6
knotserver/xrpc/repo_branches.go
··· 20 20 21 21 cursor := r.URL.Query().Get("cursor") 22 22 23 - limit := 50 // default 24 - if limitStr := r.URL.Query().Get("limit"); limitStr != "" { 25 - if l, err := strconv.Atoi(limitStr); err == nil && l > 0 && l <= 100 { 26 - limit = l 27 - } 28 - } 23 + // limit := 50 // default 24 + // if limitStr := r.URL.Query().Get("limit"); limitStr != "" { 25 + // if l, err := strconv.Atoi(limitStr); err == nil && l > 0 && l <= 100 { 26 + // limit = l 27 + // } 28 + // } 29 + 30 + limit := 500 29 31 30 32 gr, err := git.PlainOpen(repoPath) 31 33 if err != nil {