]> git.ipfire.org Git - thirdparty/git.git/blobdiff - cache-tree.c
Merge branch 'dl/complete-rebase-and-archive'
[thirdparty/git.git] / cache-tree.c
index c22161f987152ea18715b00815e987847786c5ff..0e5724fad752e9157dbcf1caba0438b42386ee3d 100644 (file)
@@ -5,6 +5,7 @@
 #include "cache-tree.h"
 #include "object-store.h"
 #include "replace-object.h"
+#include "promisor-remote.h"
 
 #ifndef DEBUG_CACHE_TREE
 #define DEBUG_CACHE_TREE 0
@@ -357,7 +358,7 @@ static int update_one(struct cache_tree *it,
                }
 
                ce_missing_ok = mode == S_IFGITLINK || missing_ok ||
-                       (repository_format_partial_clone &&
+                       (has_promisor_remote() &&
                         ce_skip_worktree(ce));
                if (is_null_oid(oid) ||
                    (!ce_missing_ok && !has_object_file(oid))) {