From patchwork Fri Apr 5 20:44:13 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jonathan Tan X-Patchwork-Id: 10887819 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 4855B1708 for ; Fri, 5 Apr 2019 20:44:19 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 341BE28B76 for ; Fri, 5 Apr 2019 20:44:19 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 325BA28B81; Fri, 5 Apr 2019 20:44:19 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-15.5 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,MAILING_LIST_MULTI,RCVD_IN_DNSWL_HI, USER_IN_DEF_DKIM_WL autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id B1ECA28B76 for ; Fri, 5 Apr 2019 20:44:18 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726559AbfDEUoR (ORCPT ); Fri, 5 Apr 2019 16:44:17 -0400 Received: from mail-pf1-f201.google.com ([209.85.210.201]:55816 "EHLO mail-pf1-f201.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725967AbfDEUoQ (ORCPT ); Fri, 5 Apr 2019 16:44:16 -0400 Received: by mail-pf1-f201.google.com with SMTP id e128so3921020pfc.22 for ; Fri, 05 Apr 2019 13:44:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=date:message-id:mime-version:subject:from:to:cc; bh=n6oFv4nqAdzovMBTjG40b6ioM1OTTF5Bf+i0zFSNWtA=; b=a/Oj4olYUi8uyU5Y8iljxCPGKCS0YVRvzj8EZ8Wj+t6WBVz0by6m7cz8zGItTVSBwI RGDjZBuY9tLZ5GAe95rvCOxsxefRqalEziKTKwyfNaQhwD4HtohGYC5INYlhbaZtF0Cf /UFIR57OnQp1Y5IGDavl87T79RxFfszjKd0BrHHVjScxrsG+O58cYIz/EtK3gxEt+O45 scYgP0y8FDq2fsoDF65Y6c+eXQmwCP5FnRIJAql7HU+frDj3ec5tU0VZOBTdRB0K8nYw qQwckFl9x4+/7/LCrCLYbXbXVlhwVCDAAtCePkLf2za7pZkLxFtsDVEChB3E3vcnPnPS DRTg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:message-id:mime-version:subject:from:to:cc; bh=n6oFv4nqAdzovMBTjG40b6ioM1OTTF5Bf+i0zFSNWtA=; b=FTVukYm25kIyvWbQKqkwi8EuDQotcLDtCTk+qSt+qhpcDaUd6wrhQ+X9vlcsnNiwDm pdb/UI8t6stpz4rrwQYHHZ0au9AAskx7LGiQuRkzxbMBOxMp+mxj/lcD7s5zsoKJ0R3P G53kz6ia7z9w2uZ7hFjZVxWpzS1e4A7yMPt196zKcTL1noaDqK9BxQTHGD9p5N82kuGi airbvuy22RE/3BadbpMwJozcjrFet9efM/YUMEkpK8zVRurFR7lBFeVhztS7Z5YhYMbX OLwgyu7kdK+QN1flVa+WaSqFKIdFBHWy7/uwKcLAHX5WNFfFVEFd3B5/XGnw2SSOn2Mc ea7w== X-Gm-Message-State: APjAAAU+ac/Nl4wIqs3Z/9amVSnpD/93V/KdJn4t1m6ikcCyZw9wKpLl Ty3XGxMfEOdk40LvWkINYqEt9I73DNjNW8Yxb1J1JgI4SWOxjl947un0czolIHFGyhS1x+w6dzA y4FxUCWX2l8NcjVyS24ijA5JcvVZTbtXR2qD8tkfBMSE1VHzR8NnZndz++1zSPl4utxiDMA85sO r+ X-Google-Smtp-Source: APXvYqyMSenGSHq+MpmDZWOMUX8axFqdWLwM8mHZkuU0eIRhGu2iIC7ysG3Daz8I3yI1/X0kZr+FqOZjFjbiNEj6+V/t X-Received: by 2002:a65:4544:: with SMTP id x4mr395198pgr.106.1554497055621; Fri, 05 Apr 2019 13:44:15 -0700 (PDT) Date: Fri, 5 Apr 2019 13:44:13 -0700 Message-Id: <20190405204413.93900-1-jonathantanmy@google.com> Mime-Version: 1.0 X-Mailer: git-send-email 2.21.0.392.gf8f6787159e-goog Subject: [PATCH] clone: send server options when using protocol v2 From: Jonathan Tan To: git@vger.kernel.org Cc: Jonathan Tan Sender: git-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: git@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Commit 5e3548ef16 ("fetch: send server options when using protocol v2", 2018-04-24) taught "fetch" the ability to send server options when using protocol v2, but not "clone". This ability is triggered by "-o" or "--server-option". Teach "clone" the same ability, except that because "clone" already has "-o" for another parameter, teach "clone" only to receive "--server-option". Signed-off-by: Jonathan Tan Reviewed-by: Jonathan Nieder --- Documentation/git-clone.txt | 7 +++++++ builtin/clone.c | 6 ++++++ t/t5702-protocol-v2.sh | 11 +++++++++++ 3 files changed, 24 insertions(+) diff --git a/Documentation/git-clone.txt b/Documentation/git-clone.txt index 2fd12524f9..5b79da359c 100644 --- a/Documentation/git-clone.txt +++ b/Documentation/git-clone.txt @@ -131,6 +131,13 @@ objects from the source repository into a pack in the cloned repository. is specified. This flag forces progress status even if the standard error stream is not directed to a terminal. +--server-option=