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 1ff1cf51da..e2b267cc02 100644 --- a/bundle-uri.c +++ b/bundle-uri.c @@ -794,6 +794,15 @@ int fetch_bundle_uri(struct repository *r, const char *uri, init_bundle_list(&list); + /* + * Do not fetch a NULL or empty bundle URI. An empty bundle URI + * could signal that a configured bundle URI has been disabled. + */ + if (!uri || !*uri) { + result = 0; + goto cleanup; + } + /* If a bundle is added to this global list, then it is required. */ list.mode = BUNDLE_MODE_ALL; |