diff options
author | Junio C Hamano <gitster@pobox.com> | 2019-10-07 04:32:58 +0200 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2019-10-07 04:32:58 +0200 |
commit | ae203ba414f7e0b83f8b07255898a6cff3b5c07e (patch) | |
tree | 003629b9873324ec09a786d2c2b2ea90e6e0f58a /cache-tree.c | |
parent | Merge branch 'dl/cocci-everywhere' (diff) | |
parent | cache-tree: do not lazy-fetch tentative tree (diff) | |
download | git-ae203ba414f7e0b83f8b07255898a6cff3b5c07e.tar.xz git-ae203ba414f7e0b83f8b07255898a6cff3b5c07e.zip |
Merge branch 'jt/cache-tree-avoid-lazy-fetch-during-merge'
The cache-tree code has been taught to be less aggressive in
attempting to see if a tree object it computed already exists in
the repository.
* jt/cache-tree-avoid-lazy-fetch-during-merge:
cache-tree: do not lazy-fetch tentative tree
Diffstat (limited to 'cache-tree.c')
-rw-r--r-- | cache-tree.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cache-tree.c b/cache-tree.c index 0e5724fad7..62edee45e4 100644 --- a/cache-tree.c +++ b/cache-tree.c @@ -408,7 +408,7 @@ static int update_one(struct cache_tree *it, if (repair) { struct object_id oid; hash_object_file(buffer.buf, buffer.len, tree_type, &oid); - if (has_object_file(&oid)) + if (has_object_file_with_flags(&oid, OBJECT_INFO_SKIP_FETCH_OBJECT)) oidcpy(&it->oid, &oid); else to_invalidate = 1; |