Skip to content
Snippets Groups Projects
Verified Commit 3ab85628 authored by Antoine R. Dumont's avatar Antoine R. Dumont
Browse files

Add gitiles lister

Gitiles instance returns voluntarily a malformed json output (json prefixed with
``)]}'\n``) [2]. The lister deals with it to properly parse the json response
nonetheless. It drops the prefix and then parses the json.

If at some point, they drop this prefix to return json directly, the lister will be able
to deal with it too. There are 2 tests one with 'standard' gitile format and another
with standard json to account for both case.

Refs. swh/meta#5045

[2] https://github.com/google/gitiles/issues/263
parent 573958ce
1 merge request!487Add gitiles lister
Pipeline #3585 passed
Showing with 307 additions and 0 deletions
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