Skip to content

Commit c7d2ced

Browse files
committed
Merge branch 'jt/push-avoid-lazy-fetch'
Performance hack. * jt/push-avoid-lazy-fetch: send-pack: never fetch when checking exclusions
2 parents 1ef3bd3 + d8bc1a5 commit c7d2ced

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

send-pack.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,8 @@ int option_parse_push_signed(const struct option *opt,
4040

4141
static void feed_object(const struct object_id *oid, FILE *fh, int negative)
4242
{
43-
if (negative && !has_object_file(oid))
43+
if (negative &&
44+
!has_object_file_with_flags(oid, OBJECT_INFO_SKIP_FETCH_OBJECT))
4445
return;
4546

4647
if (negative)

0 commit comments

Comments
 (0)