~xenrox/hut#61: 
hut git list returns incomplete results when redirected to file

hut git list returns 25 repositories for me when I pipe its output to a file, which is definitely less than I have. It returns 92 repositories when I let it go to standard output (it seems to call less or something).

Status
REPORTED
Submitter
~runxiyu
Assigned to
No-one
Submitted
a month ago
Updated
19 days ago
Labels
enhancement

~xenrox 19 days ago

Yes that is expected for now. When directly invoked from the terminal, hut will send a single request to fetch 25 resources (repos, issues, build jobs...) and if you continue to scroll though the output it will send additional requests.

When piping to a file, there will only be one request for now, so that the API does not get flooded unnecessarily. I have planned a count flag in the future, that will allow users to specify the number of desired resources (hut will add backoff).

Register here or Log in to comment, or comment via email.