Message ID | 782ca07eed2c9bac4378e5128ff996b25ed86a43.1562801255.git.matheus.bernardino@usp.br (mailing list archive) |
---|---|
State | New, archived |
Headers | show
Return-Path: <git-owner@kernel.org> 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 65EAA6C5 for <patchwork-git@patchwork.kernel.org>; Thu, 11 Jul 2019 00:00:40 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 58B00288F3 for <patchwork-git@patchwork.kernel.org>; Thu, 11 Jul 2019 00:00:40 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 569D428A3C; Thu, 11 Jul 2019 00:00:40 +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=-7.9 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI,RCVD_IN_DNSWL_HI 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 03ECD28A0F for <patchwork-git@patchwork.kernel.org>; Thu, 11 Jul 2019 00:00:40 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727844AbfGKAAj (ORCPT <rfc822;patchwork-git@patchwork.kernel.org>); Wed, 10 Jul 2019 20:00:39 -0400 Received: from mail-qt1-f194.google.com ([209.85.160.194]:38952 "EHLO mail-qt1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727386AbfGKAAi (ORCPT <rfc822;git@vger.kernel.org>); Wed, 10 Jul 2019 20:00:38 -0400 Received: by mail-qt1-f194.google.com with SMTP id l9so4467383qtu.6 for <git@vger.kernel.org>; Wed, 10 Jul 2019 17:00:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=usp-br.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=TA7qLhwVjgT7/njeUhcABACRPDG7IyBV0uSnJgIka+0=; b=lYz1Vvn1ABgdlgooOpEjaqM0BTPoM/K66YIOgC0TWF5GpNQs67s0wjNmbfQjsYVBNi amwvVA3BicggBGSh7WLJdBRqdwfq6E/3ol72Yn4BbXFJI+1QFg2OhdCRqC9YYb3GUhGm Bq31njUI18j9Vm2vDb1Z0PSN2PoZrX5NGSzQ1Ns76kh7+JKYDpQ58hI0zrpIzifgu7IH 3lWLbTRuT+NJY0UqIknPXx6DwwbU61mZIhxi3lEkqp9QwCHUZFVCLCgj4urigwKOkJrO nsZrEPDXS7+0SyC9bqU80m6izoVp6QCRAbVLJfhtZXhzTtvnWVy1xiuu9pLI386ab0Xh oW6A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=TA7qLhwVjgT7/njeUhcABACRPDG7IyBV0uSnJgIka+0=; b=XWI2duvhnL3WnJWoFPctPoJQQZHk8vDozppIzVSUpQMNoxhwJrlZGPIaMtYkfM8InY pVlCGVSjff+nktx3/8NS2FSaG1yN72LwV4HTY19Pj6dvNYwSDYeZRdKPYM3x5URqHGVH tAjR7BJseGSABKfR2WhcuNge4uWaecur5jvFrMZ9F3gVHMrWt0V1yg5vRl/9TwtYNFvU MSLw3IMv4BHz+6JA7fbf8HqsG89nHs20xX4R++DuyHFNGTYG2dXcVcAPqghLlTEkL0RE AHLHDP12X0gHuZm93H9QocE5dgQ+DnqikRmxmFsS2zZU/E2g8E0fm1nMJHOLhPmBGCoL GqHw== X-Gm-Message-State: APjAAAVYEulHhPlC0ch5Yt7btvFsqdu4LpQMoZm1ix5E3hI9dSJWeORa XPydzgpBLz59mzyvgMicelaAAA== X-Google-Smtp-Source: APXvYqyRrRbPKjhKn0qhq6l47wNGeLxYn7BYr93KT7HT8M86MNWvXax/yghxrnx0g0JwgFKQIiGS1w== X-Received: by 2002:ac8:359a:: with SMTP id k26mr578155qtb.87.1562803237774; Wed, 10 Jul 2019 17:00:37 -0700 (PDT) Received: from mango.spo.virtua.com.br ([2804:14c:81:942d::1]) by smtp.gmail.com with ESMTPSA id x8sm1714546qkl.27.2019.07.10.17.00.32 (version=TLS1_3 cipher=AEAD-AES256-GCM-SHA384 bits=256/256); Wed, 10 Jul 2019 17:00:37 -0700 (PDT) From: Matheus Tavares <matheus.bernardino@usp.br> To: Junio C Hamano <gitster@pobox.com> Cc: git@vger.kernel.org, Thomas Gummerer <t.gummerer@gmail.com>, =?utf-8?b?w4Z2YXIgQXJuZmrDtnLDsCBCamFybWFzb24=?= <avarab@gmail.com>, Christian Couder <christian.couder@gmail.com>, =?utf-8?b?Tmd1eeG7hW4gVGg=?= =?utf-8?b?w6FpIE5n4buNYyBEdXk=?= <pclouds@gmail.com>, =?utf-8?q?SZEDER_G?= =?utf-8?q?=C3=A1bor?= <szeder.dev@gmail.com>, Olga Telezhnaya <olyatelezhnaya@gmail.com>, Johannes Schindelin <Johannes.Schindelin@gmx.de>, kernel-usp@googlegroups.com, Jeff King <peff@peff.net> Subject: [GSoC][PATCH v8 10/10] clone: replace strcmp by fspathcmp Date: Wed, 10 Jul 2019 20:59:04 -0300 Message-Id: <782ca07eed2c9bac4378e5128ff996b25ed86a43.1562801255.git.matheus.bernardino@usp.br> X-Mailer: git-send-email 2.22.0 In-Reply-To: <cover.1562801254.git.matheus.bernardino@usp.br> References: <cover.1562801254.git.matheus.bernardino@usp.br> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: git-owner@vger.kernel.org Precedence: bulk List-ID: <git.vger.kernel.org> X-Mailing-List: git@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP |
Series |
clone: dir-iterator refactoring with tests
|
expand
|
diff --git a/builtin/clone.c b/builtin/clone.c index 47cb4a2a8e..8da696ef30 100644 --- a/builtin/clone.c +++ b/builtin/clone.c @@ -444,7 +444,7 @@ static void copy_or_link_directory(struct strbuf *src, struct strbuf *dest, } /* Files that cannot be copied bit-for-bit... */ - if (!strcmp(iter->relative_path, "info/alternates")) { + if (!fspathcmp(iter->relative_path, "info/alternates")) { copy_alternates(src, src_repo); continue; }
Replace the use of strcmp by fspathcmp at copy_or_link_directory, which is more permissive/friendly to case-insensitive file systems. Suggested-by: Nguyễn Thái Ngọc Duy <pclouds@gmail.com> Signed-off-by: Matheus Tavares <matheus.bernardino@usp.br> --- builtin/clone.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)