From patchwork Wed Jul 10 23:59:04 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Matheus Tavares X-Patchwork-Id: 11039115 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 65EAA6C5 for ; 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 ; 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 ; Thu, 11 Jul 2019 00:00:40 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727844AbfGKAAj (ORCPT ); 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 ); Wed, 10 Jul 2019 20:00:38 -0400 Received: by mail-qt1-f194.google.com with SMTP id l9so4467383qtu.6 for ; 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 To: Junio C Hamano Cc: git@vger.kernel.org, Thomas Gummerer , =?utf-8?b?w4Z2YXIgQXJuZmrDtnLDsCBCamFybWFzb24=?= , Christian Couder , =?utf-8?b?Tmd1eeG7hW4gVGg=?= =?utf-8?b?w6FpIE5n4buNYyBEdXk=?= , =?utf-8?q?SZEDER_G?= =?utf-8?q?=C3=A1bor?= , Olga Telezhnaya , Johannes Schindelin , kernel-usp@googlegroups.com, Jeff King 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: References: MIME-Version: 1.0 Sender: git-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: git@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP 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 Signed-off-by: Matheus Tavares --- builtin/clone.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; }