Skip to content
Snippets Groups Projects
Commit 45749dd3 authored by Georges Racinet's avatar Georges Racinet
Browse files

GetTreeEntries: testing and fixing some corner cases

Testing the case of `limit=0` and revision unknown uncovered a
small difference between HGitaly and Gitaly (RHGitaly was already
compliant): HGitaly was returning a response, with an empty list
of entries.

Decided to change `chunked()` to avoid yielding an empty chunk,
but it turned out that `RepositoryService.SearchFilesByName` was
actually expected to yield responses with empty lists, hence we
hade to make it optional.

The check in `CommitService` to avoid empty chunks having become
default, we had to remove it to kepp coverage.
parent 63daae2a
No related branches found
No related tags found
2 merge requests!189Merged stable branch into default and bumped VERSION,!188RHGitaly CommitService.GetTreeEntries implementation
Pipeline #70803 passed
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment