From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id B8E04C433F5 for ; Tue, 14 Dec 2021 04:09:38 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233873AbhLNEJg (ORCPT ); Mon, 13 Dec 2021 23:09:36 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60962 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229669AbhLNEJV (ORCPT ); Mon, 13 Dec 2021 23:09:21 -0500 Received: from mail-wr1-x432.google.com (mail-wr1-x432.google.com [IPv6:2a00:1450:4864:20::432]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E357DC06173F for ; Mon, 13 Dec 2021 20:09:20 -0800 (PST) Received: by mail-wr1-x432.google.com with SMTP id d24so30426710wra.0 for ; Mon, 13 Dec 2021 20:09:20 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=message-id:in-reply-to:references:from:date:subject:fcc :content-transfer-encoding:mime-version:to:cc; bh=y3fl9hDWXuCSYMuW6+ZA/aC18Vkow8+QcGnZipJ9ido=; b=G+p43dvciZFLLIFHBV2+iXvOpQmX2WrcNBvmBWttzKkJN9w1HOWtx1kSwKgnjMAaLD dnum9BzkvoN7rR0EpSVDOm3Dxah46MYa43m+bGM4xBnVh+zRht0Swo+v7jX8M1WjpCgT UtZeieQJIo/b4p3V6RCR4dsE2xTb4wBg5DBIRk9M4S/nLc9vQQV6cTLiPpWQl3Fwqaz7 2QSEEMlBjEXaSW51RnZTJdBreyKDtRrT+/9nQlr8sZdEg44plk/iylcHbMSAzVfRVRax SZOLYLEcD6+U+yMJYOkjG1XnEytzZzxDSpJ80L/la6vKCZeJonHNHq3lsI6elHn4aOI2 /zxQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:message-id:in-reply-to:references:from:date :subject:fcc:content-transfer-encoding:mime-version:to:cc; bh=y3fl9hDWXuCSYMuW6+ZA/aC18Vkow8+QcGnZipJ9ido=; b=U0a3fS7R8IAGKarAriW80nAaBSp8TmfqvHseLQBY5FoRM5ix1DwPmo1NYPxp6lzcRr L4ZgjVplrp3YalLWFqsGgeT4bepH+legGt5B7BgYj7B8PH2l3lrlaKh3JFbNUt5tPJDb lGWnHQjXKEmjSok5szqcKO6UZm+wtEQUXHT4YYFBBySCwcYjZd/RKjHArSHaFCA4tdBc SrKQz5OYsSCjsVeOQQkajHkjrmUzgkoivxlkdne/hkmOJkNpQUfUwBpcvu46nECigKaD tgcNdg3yHpVxJIgoVlkO9KB+qkjwdTP20tTYV1lAisiSWsabDfvpE5qIkGDnxtdH6mKb kLUQ== X-Gm-Message-State: AOAM532TH7eo+IiV3VQANXwl9f4agLhAfKts1eToqm9SkfVe8L5MLU2T viXjfTexBUcqCwkLKpxpCvTuIgkYa8Q= X-Google-Smtp-Source: ABdhPJwjMLhlMs+Idyidcoo8dTUTAsiVwKWmZ7boF7hFOnU6m4O2pGwrtBlYkgNGCHkjZmD29unjdA== X-Received: by 2002:adf:d4c2:: with SMTP id w2mr3018197wrk.225.1639454959441; Mon, 13 Dec 2021 20:09:19 -0800 (PST) Received: from [127.0.0.1] ([13.74.141.28]) by smtp.gmail.com with ESMTPSA id n13sm12575855wrt.44.2021.12.13.20.09.19 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 13 Dec 2021 20:09:19 -0800 (PST) Message-Id: In-Reply-To: References: From: "Elijah Newren via GitGitGadget" Date: Tue, 14 Dec 2021 04:09:12 +0000 Subject: [PATCH v4 10/10] clone: avoid using deprecated `sparse-checkout init` Fcc: Sent Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit MIME-Version: 1.0 To: git@vger.kernel.org Cc: Derrick Stolee , Lessley Dennington , Victoria Dye , Elijah Newren , Elijah Newren , Elijah Newren Precedence: bulk List-ID: X-Mailing-List: git@vger.kernel.org From: Elijah Newren The previous commits marked `sparse-checkout init` as deprecated; we can just use `set` instead here and pass it no paths. Reviewed-by: Derrick Stolee Reviewed-by: Victoria Dye Signed-off-by: Elijah Newren --- builtin/clone.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/builtin/clone.c b/builtin/clone.c index fb377b27657..5bed37f8b51 100644 --- a/builtin/clone.c +++ b/builtin/clone.c @@ -633,7 +633,7 @@ static int git_sparse_checkout_init(const char *repo) { struct strvec argv = STRVEC_INIT; int result = 0; - strvec_pushl(&argv, "-C", repo, "sparse-checkout", "init", NULL); + strvec_pushl(&argv, "-C", repo, "sparse-checkout", "set", NULL); /* * We must apply the setting in the current process -- gitgitgadget