Skip to content

bundle-uri.c: Fix double increment in depth

Toon Claes requested to merge toon-fetch-bundle-uri into master

A bundle URI can serve a gitformat-bundle(5) or a bundle list. This plain text file is in the Git config format containing other bundle URIs. To avoid these bundle lists to nest too deep, we've set a limit with max_bundle_uri_depth. Although, when walk through the tree of bundles, the current depth is incremented in download_bundle_list() and then calls download_bundle_to_file(), which also increments the depth. Remove the increment in download_bundle_to_file().

Signed-off-by: Toon Claes toon@iotcl.com

Merge request reports