diff options
Diffstat (limited to 'bundle-uri.c')
| -rw-r--r-- | bundle-uri.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/bundle-uri.c b/bundle-uri.c index ec1552bbca..2a2db1a1d3 100644 --- a/bundle-uri.c +++ b/bundle-uri.c @@ -795,6 +795,15 @@ int fetch_bundle_uri(struct repository *r, const char *uri, init_bundle_list(&list); + /* + * Do not fetch an empty bundle URI. An empty bundle URI + * could signal that a configured bundle URI has been disabled. + */ + if (!*uri) { + result = 0; + goto cleanup; + } + /* If a bundle is added to this global list, then it is required. */ list.mode = BUNDLE_MODE_ALL; |
