From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 2AE87A0C48 for ; Tue, 15 Jun 2021 14:50:05 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 1B1AD4115E; Tue, 15 Jun 2021 14:50:05 +0200 (CEST) Received: from wout4-smtp.messagingengine.com (wout4-smtp.messagingengine.com [64.147.123.20]) by mails.dpdk.org (Postfix) with ESMTP id 13E8A40140; Tue, 15 Jun 2021 14:50:02 +0200 (CEST) Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailout.west.internal (Postfix) with ESMTP id BEC7BC0C; Tue, 15 Jun 2021 08:49:59 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute4.internal (MEProxy); Tue, 15 Jun 2021 08:50:00 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=monjalon.net; h= from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; s=fm1; bh=QfnhiS0eukpYyWXyxDNlnkQVvT jU5Ciq2I/4PGkIptE=; b=JVtdKV76YSnUQuqZWinozdZepS8vhPuVY596aSF29W 5K/30f/knppgpsK180IIBp/pwZrPssEhSdxRh+fHVO+EzF0IgAJ44mQfYttuzNxy Jp3jM4+eZdOi0Xqz/bqiPcgvpE5v/L0tPyHK9HfWp3crbQKydj64xgro/5ShkDRZ JPky6Ys35UUJiucaEgoKCbXTtIBjCotCU2/II8jPXp95sjp4cOt8Li8LZk6s0KIO IvStoAz9zMSUB/lJq1vW8KBakrochdzE0JDKideEHDuFFiqYFssn7wHcb/tDCCqi k31+S2kVS8c1o8oiLNlEsEayNj7MlyopuFP3rhTUqNgA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:date:from :message-id:mime-version:subject:to:x-me-proxy:x-me-proxy :x-me-sender:x-me-sender:x-sasl-enc; s=fm3; bh=QfnhiS0eukpYyWXyx DNlnkQVvTjU5Ciq2I/4PGkIptE=; b=jPz9QMkzcJjcMFDgLrVjR27WUv0NXNYf2 dAB1LW6iaU62KOa7WJ0FizdW8vUPOXrJSocd06S9+DRPUjKEwq2QTGi2LYYo0MM3 y0xquG2k4GN4aiTq9G19IkILg4bnYibhFPo9pCl4exwWqpmwYkZuNhPlvxc6XqHn AhMCFJHvhAyCUCNiMaS2+dR3xDIvSe5iFAmCp08ERLkfN9/HWU4YK2XbSqNJDWJw 0wW+MJ08fCpln+P1JSbOr7VVeICGP8rtplb7SwehMcHGyjf2UpJZ3sfGhpiZLTX8 /HSNMv/CAMZe1twSYcG8kIXhFjoSqBgJv6xj3wEp5/LMg+4xmZqzA== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduledrfedvjedgheejucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucenucfjughrpefhvffufffkofgggfestdekredtre dttdenucfhrhhomhepvfhhohhmrghsucfoohhnjhgrlhhonhcuoehthhhomhgrshesmhho nhhjrghlohhnrdhnvghtqeenucggtffrrghtthgvrhhnpedvledvudehvdduudevuedvve ehgeduleegiefgjeehudehtddtgeduffejiefhgfenucevlhhushhtvghrufhiiigvpedt necurfgrrhgrmhepmhgrihhlfhhrohhmpehthhhomhgrshesmhhonhhjrghlohhnrdhnvg ht X-ME-Proxy: Received: by mail.messagingengine.com (Postfix) with ESMTPA; Tue, 15 Jun 2021 08:49:58 -0400 (EDT) From: Thomas Monjalon To: dev@dpdk.org Cc: stable@dpdk.org Date: Tue, 15 Jun 2021 14:49:49 +0200 Message-Id: <20210615124949.411525-1-thomas@monjalon.net> X-Mailer: git-send-email 2.31.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: [dpdk-stable] [PATCH] devtools: fix file listing in maintainers check X-BeenThere: stable@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: patches for DPDK stable branches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: stable-bounces@dpdk.org Sender: "stable" When having multiple working trees, the main one has a .git directory while attached trees have a .git file. Thus the git check should work for both file and directory. In the case there is no working tree (.git not readable), the command "find" is used and should be able to list paths with wildcards. Wildcards work only as shell expansion in the case of file paths, so the quotes must be removed. Fixes: 27c2ce563216 ("maintainers: start a Linux-style file") Cc: stable@dpdk.org Signed-off-by: Thomas Monjalon --- devtools/check-maintainers.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/devtools/check-maintainers.sh b/devtools/check-maintainers.sh index df3f740b6e..71697bb352 100755 --- a/devtools/check-maintainers.sh +++ b/devtools/check-maintainers.sh @@ -15,10 +15,10 @@ files () # [ ...] if [ -z "$1" ] ; then return fi - if [ -d .git ] ; then + if [ -r .git ] ; then git ls-files "$1" else - find "$1" -type f | + find $1 -type f | sed 's,^\./,,' fi | # if not ended by / -- 2.31.1