]> git.ipfire.org Git - thirdparty/git.git/blobdiff - builtin/cat-file.c
Merge branch 'dl/octopus-graph-bug'
[thirdparty/git.git] / builtin / cat-file.c
index 995d47c85aad24a645786ed6480bd659c755997e..d6a1aa74cd41fe17fdb9d92f6b55fb7d67b31726 100644 (file)
@@ -15,6 +15,7 @@
 #include "sha1-array.h"
 #include "packfile.h"
 #include "object-store.h"
+#include "promisor-remote.h"
 
 struct batch_options {
        int enabled;
@@ -524,8 +525,8 @@ static int batch_objects(struct batch_options *opt)
        if (opt->all_objects) {
                struct object_cb_data cb;
 
-               if (repository_format_partial_clone)
-                       warning("This repository has extensions.partialClone set. Some objects may not be loaded.");
+               if (has_promisor_remote())
+                       warning("This repository uses promisor remotes. Some objects may not be loaded.");
 
                cb.opt = opt;
                cb.expand = &data;