]> git.ipfire.org Git - thirdparty/git.git/blobdiff - bundle-uri.c
preload-index.h: move declarations for preload-index.c from elsewhere
[thirdparty/git.git] / bundle-uri.c
index e2b267cc02bb1a46f349ae06a406923d438462c8..2a2db1a1d390f89be51cbad4b5313d4ac67ad5c0 100644 (file)
@@ -1,6 +1,7 @@
-#include "cache.h"
+#include "git-compat-util.h"
 #include "bundle-uri.h"
 #include "bundle.h"
+#include "copy.h"
 #include "environment.h"
 #include "gettext.h"
 #include "object-store.h"
@@ -795,10 +796,10 @@ 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
+        * Do not fetch an empty bundle URI. An empty bundle URI
         * could signal that a configured bundle URI has been disabled.
         */
-       if (!uri || !*uri) {
+       if (!*uri) {
                result = 0;
                goto cleanup;
        }