summaryrefslogtreecommitdiffstats
path: root/sha1-file.c
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2019-06-17 19:15:14 +0200
committerJunio C Hamano <gitster@pobox.com>2019-06-17 19:15:14 +0200
commit5d5c46b28c04348f7b680e5fe007c6344a86a70a (patch)
treeecb93914f4ecf98aadce766bf0a30c05cd8d2fa9 /sha1-file.c
parentThe first batch after 2.22 (diff)
parentsha1-file: split OBJECT_INFO_FOR_PREFETCH (diff)
downloadgit-5d5c46b28c04348f7b680e5fe007c6344a86a70a.tar.xz
git-5d5c46b28c04348f7b680e5fe007c6344a86a70a.zip
Merge branch 'ds/object-info-for-prefetch-fix'
Code cleanup and futureproof. * ds/object-info-for-prefetch-fix: sha1-file: split OBJECT_INFO_FOR_PREFETCH
Diffstat (limited to 'sha1-file.c')
-rw-r--r--sha1-file.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sha1-file.c b/sha1-file.c
index ed5c50dac4..888b6024d5 100644
--- a/sha1-file.c
+++ b/sha1-file.c
@@ -1379,7 +1379,7 @@ int oid_object_info_extended(struct repository *r, const struct object_id *oid,
/* Check if it is a missing object */
if (fetch_if_missing && repository_format_partial_clone &&
!already_retried && r == the_repository &&
- !(flags & OBJECT_INFO_FOR_PREFETCH)) {
+ !(flags & OBJECT_INFO_SKIP_FETCH_OBJECT)) {
/*
* TODO Investigate having fetch_object() return
* TODO error/success and stopping the music here.