From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on dcvr.yhbt.net X-Spam-Level: X-Spam-ASN: AS31976 209.132.180.0/23 X-Spam-Status: No, score=-11.7 required=3.0 tests=AWL,BAYES_00,DKIMWL_WL_MED, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RCVD_IN_DNSWL_HI,USER_IN_DEF_DKIM_WL shortcircuit=no autolearn=ham autolearn_force=no version=3.4.2 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by dcvr.yhbt.net (Postfix) with ESMTP id 3E78020248 for ; Tue, 9 Apr 2019 20:31:49 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726554AbfDIUbn (ORCPT ); Tue, 9 Apr 2019 16:31:43 -0400 Received: from mail-ot1-f74.google.com ([209.85.210.74]:36475 "EHLO mail-ot1-f74.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726333AbfDIUbn (ORCPT ); Tue, 9 Apr 2019 16:31:43 -0400 Received: by mail-ot1-f74.google.com with SMTP id k28so10657389otf.3 for ; Tue, 09 Apr 2019 13:31:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=date:in-reply-to:message-id:mime-version:references:subject:from:to :cc; bh=Tj7tN8hD2sV6s77GOLZBLyWda8/wpa5me6YqptRetnc=; b=P/UM+BhfYs7Dz7up00faijMJJy5A1DYdCyjclG4SH/ZpSCVE4Wa4icRNS5NDe8nIMC QY+XQ8N3GvdszCCWno7gJ/ZJA/vW4yIxWrc5+YZ24damW3tyIM+CWrxdZd0mzf+z3ALc 3LB9EMuE/2gcaa2XJaCPg6Pv10uEEAd/9OVonmkiWQKpMavE0sRHRAOP8K2CmxialnZx hEJBdOEgXtSnN9t2PkptmppG6WEiASVQv/gMxkDi0iE8+QY6YFHF0Cg0jg9Ud8dR2BuQ 9dZhanelVvoe2Ehwqi8hCiS4kJ/io4fUap4bcXSJyzrfRRquJhnCXeEyX1UZ403WTzHz HM6g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:in-reply-to:message-id:mime-version :references:subject:from:to:cc; bh=Tj7tN8hD2sV6s77GOLZBLyWda8/wpa5me6YqptRetnc=; b=PZukspZyLiwQs8yWNOVVIBUkn3C8E66Puh9moClbaltJl8RItgjP2TjrYqFv9ey6KZ ts+yVnHrP9IWSpqtSq/4eHzvnDQL+t4ws1lEVh2mOzSOyg68gidZJXu0NZEJfX660SNH pyI4d+G3/ZQHP4Oqw8u8EuOSM16BsMDTZE+XI7qjMHcn/Um7ftfH/Qevgt+VGkqMT3Dc /5QYqFbBfgi5uz+Q33s23/BoJPpZ2leJOmtd7a2zm9jO1272lIuyQZIvN16L7fdVzztl D7F/qP4pOSRgiIpkvtqJklfBdJ1uALk++FEnkFt7KgSyf6vSntDUuwSJbrsp9RhHpkBh KXhQ== X-Gm-Message-State: APjAAAWasIr3RI7/ZIHcGhd/AifUjusnHlxibKECnIjLrpQHTr5TI83R Mot5ghs3p24aquCvJh4dAAc/nexl2IiCOKmhLmmkLfPtJsr9+GTo7t6/hEG20an3aFzcrsWsUBB ZJBuO3Cs0XswnIxl3JLDpudwwKzd7EJmI4Ps9SOU7H7Hs3mdbUaMxuj8E4L0IVGW4gi612Y8402 eM X-Google-Smtp-Source: APXvYqy8BlvJ7Lctta1pspgx5AtEzfcNjmoGA5mcnDjI+ZC1HOcH0OQJuZOGPEYuLuiD0FS/9GgcHCkuhrNKEb8uR6PS X-Received: by 2002:aca:4c11:: with SMTP id z17mr3427128oia.13.1554841902374; Tue, 09 Apr 2019 13:31:42 -0700 (PDT) Date: Tue, 9 Apr 2019 13:31:34 -0700 In-Reply-To: Message-Id: <142c25abd2c5c5c477c44d0e47cb20a3d504ab1c.1554841624.git.jonathantanmy@google.com> Mime-Version: 1.0 References: <20190405204413.93900-1-jonathantanmy@google.com> X-Mailer: git-send-email 2.21.0.392.gf8f6787159e-goog Subject: [PATCH v2 2/2] clone: send server options when using protocol v2 From: Jonathan Tan To: git@vger.kernel.org Cc: Jonathan Tan , jrnieder@gmail.com, gitster@pobox.com Content-Type: text/plain; charset="UTF-8" Sender: git-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: git@vger.kernel.org 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". Explain in the documentation, both for clone and for fetch, that server handling of server options are server-specific. Signed-off-by: Jonathan Tan Reviewed-by: Jonathan Nieder Signed-off-by: Junio C Hamano --- Documentation/fetch-options.txt | 3 ++- Documentation/git-clone.txt | 8 ++++++++ builtin/clone.c | 6 ++++++ t/t5702-protocol-v2.sh | 21 +++++++++++++++++++++ 4 files changed, 37 insertions(+), 1 deletion(-) diff --git a/Documentation/fetch-options.txt b/Documentation/fetch-options.txt index fa0a3151b3..91c47752ec 100644 --- a/Documentation/fetch-options.txt +++ b/Documentation/fetch-options.txt @@ -216,7 +216,8 @@ endif::git-pull[] --server-option=