X-Git-Url: http://git.ipfire.org/?a=blobdiff_plain;f=cache-tree.c;h=0e5724fad752e9157dbcf1caba0438b42386ee3d;hb=e392382f95fe8d3c15cf88453acb92a93fc5a942;hp=c22161f987152ea18715b00815e987847786c5ff;hpb=94373946614f864bdcd5e0cb72e360edbed1c77f;p=thirdparty%2Fgit.git diff --git a/cache-tree.c b/cache-tree.c index c22161f987..0e5724fad7 100644 --- a/cache-tree.c +++ b/cache-tree.c @@ -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))) {