diff options
author | Jonathan Tan <jonathantanmy@google.com> | 2017-05-09 12:23:53 -0700 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2017-05-10 13:18:28 +0900 |
commit | cbaf82cc6b734244a9190c3341ca5f08f8d5acc4 (patch) | |
tree | b06badfc81d2b16f22715a4f8b33dc40523a6719 /strbuf.c | |
parent | docs: correct receive.advertisePushOptions default (diff) | |
download | tgif-cbaf82cc6b734244a9190c3341ca5f08f8d5acc4.tar.xz |
receive-pack: verify push options in cert
In commit f6a4e61 ("push: accept push options", 2016-07-14), send-pack
was taught to include push options both within the signed cert (if the
push is a signed push) and outside the signed cert; however,
receive-pack ignores push options within the cert, only handling push
options outside the cert.
Teach receive-pack, in the case that push options are provided for a
signed push, to verify that the push options both within the cert and
outside the cert are consistent.
This sets in stone the requirement that send-pack redundantly send its
push options in 2 places, but I think that this is better than the
alternatives. Sending push options only within the cert is
backwards-incompatible with existing Git servers (which read push
options only from outside the cert), and sending push options only
outside the cert means that the push options are not signed for.
Signed-off-by: Jonathan Tan <jonathantanmy@google.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'strbuf.c')
0 files changed, 0 insertions, 0 deletions