send-pack: send feature request on push-cert packet
commit66a7d76b7f1fddaa6bd8dda6d823d817e8bbae03
authorJunio C Hamano <gitster@pobox.com>
Mon, 18 Aug 2014 20:46:58 +0000 (18 13:46 -0700)
committerJunio C Hamano <gitster@pobox.com>
Fri, 22 Aug 2014 22:36:01 +0000 (22 15:36 -0700)
tree8e11af206ec11c91b583a3c1aedb2d79f03425e6
parent85c55c6e592574c1ce3abbccb9c27883b9daa684
send-pack: send feature request on push-cert packet

We would want to update the interim protocol so that we do not send
the usual update commands when the push certificate feature is in
use, as the same information is in the certificate.  Once that
happens, the push-cert packet may become the only protocol command,
but then there is no packet to put the feature request behind, like
we always did.

As we have prepared the receiving end that understands the push-cert
feature to accept the feature request on the first protocol packet
(other than "shallow ", which was an unfortunate historical mistake
that has to come before everything else), we can give the feature
request on the push-cert packet instead of the first update protocol
packet, in preparation for the next step to actually update to the
final protocol.

Signed-off-by: Junio C Hamano <gitster@pobox.com>
send-pack.c