summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2019-10-15 04:48:03 (GMT)
committerJunio C Hamano <gitster@pobox.com>2019-10-15 04:48:03 (GMT)
commitc7d2cedec27560caec9283e73759a734154cf505 (patch)
tree57d1e05513aac2d2081f002500488834a71f6879
parent1ef3bd362a3bc4d43d0d07936aaddc8c72dfe33d (diff)
parentd8bc1a518accaecde83b50288c4591f838401162 (diff)
downloadgit-c7d2cedec27560caec9283e73759a734154cf505.zip
git-c7d2cedec27560caec9283e73759a734154cf505.tar.gz
git-c7d2cedec27560caec9283e73759a734154cf505.tar.bz2
Merge branch 'jt/push-avoid-lazy-fetch'
Performance hack. * jt/push-avoid-lazy-fetch: send-pack: never fetch when checking exclusions
-rw-r--r--send-pack.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/send-pack.c b/send-pack.c
index 6dc16c3..34c77cb 100644
--- a/send-pack.c
+++ b/send-pack.c
@@ -40,7 +40,8 @@ int option_parse_push_signed(const struct option *opt,
static void feed_object(const struct object_id *oid, FILE *fh, int negative)
{
- if (negative && !has_object_file(oid))
+ if (negative &&
+ !has_object_file_with_flags(oid, OBJECT_INFO_SKIP_FETCH_OBJECT))
return;
if (negative)