From 5e3548ef161d4d284e35cf5f5d6a181ba4fe707b Mon Sep 17 00:00:00 2001 From: Brandon Williams Date: Mon, 23 Apr 2018 15:46:24 -0700 Subject: [PATCH] fetch: send server options when using protocol v2 Teach fetch to optionally accept server options by specifying them on the cmdline via '-o' or '--server-option'. These server options are sent to the remote end when performing a fetch communicating using protocol version 2. If communicating using a protocol other than v2 the provided options are ignored and not sent to the remote end. Signed-off-by: Brandon Williams Signed-off-by: Junio C Hamano --- Documentation/fetch-options.txt | 8 ++++++++ builtin/fetch.c | 5 +++++ fetch-pack.c | 7 +++++++ fetch-pack.h | 1 + t/t5702-protocol-v2.sh | 16 ++++++++++++++++ transport.c | 1 + 6 files changed, 38 insertions(+) diff --git a/Documentation/fetch-options.txt b/Documentation/fetch-options.txt index 8631e365f437fd..97d3217df9ac3f 100644 --- a/Documentation/fetch-options.txt +++ b/Documentation/fetch-options.txt @@ -188,6 +188,14 @@ endif::git-pull[] is specified. This flag forces progress status even if the standard error stream is not directed to a terminal. +-o