mbox series

[0/3] fetch: fix segfault, missing docs in --negotiate-only

Message ID cover-0.3-00000000000-20210630T163329Z-avarab@gmail.com (mailing list archive)
Headers show
Series fetch: fix segfault, missing docs in --negotiate-only | expand

Message

Ævar Arnfjörð Bjarmason June 30, 2021, 4:38 p.m. UTC
The recently added --negotiate-only option segfaults when not combined
with --negotiation-tip=*, this fixes that, and adds documentation for
it.

1/3 is a related fix to save us some work in a codepath checking the
"--negotiate-only" and other passed-in options in send-pack.c.

Ævar Arnfjörð Bjarmason (3):
  send-pack.c: move "no refs in common" abort earlier
  fetch: document the --negotiate-only option
  fetch: fix segfault in --negotiate-only without --negotiation-tip=*

 Documentation/config/fetch.txt  |  3 ++-
 Documentation/fetch-options.txt | 13 +++++++++++--
 builtin/fetch.c                 |  3 +++
 send-pack.c                     | 11 ++++++-----
 t/t5702-protocol-v2.sh          | 17 +++++++++++++++++
 5 files changed, 39 insertions(+), 8 deletions(-)