Merge branch 'jt/v2-fetch-nego-fix'
authorJunio C Hamano <gitster@pobox.com>
Fri, 1 May 2020 20:40:00 +0000 (13:40 -0700)
committerJunio C Hamano <gitster@pobox.com>
Fri, 1 May 2020 20:40:00 +0000 (13:40 -0700)
commit0b07eecf6ed9334f09d6624732a4af2da03e38eb
treedc9a051dc91ba996bae50b24e6e0169a1d339375
parent2c42fb76531f4565b5434e46102e6d85a0861738
parent2f0a093dd640e0dad0b261dae2427f2541b5426c
Merge branch 'jt/v2-fetch-nego-fix'

The upload-pack protocol v2 gave up too early before finding a
common ancestor, resulting in a wasteful fetch from a fork of a
project.  This has been corrected to match the behaviour of v0
protocol.

* jt/v2-fetch-nego-fix:
  fetch-pack: in protocol v2, reset in_vain upon ACK
  fetch-pack: in protocol v2, in_vain only after ACK
  fetch-pack: return enum from process_acks()
fetch-pack.c
t/t5500-fetch-pack.sh