From nobody Thu May 16 10:33:16 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zoho.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Authentication-Results: mx.zohomail.com; spf=pass (zoho.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org ARC-Seal: i=1; a=rsa-sha256; t=1573530776; cv=none; d=zoho.com; s=zohoarc; b=VP0olC0IZEKLaypmc2FMm2e78FWqplmU476+xy5yr3sa52tXoP9tUqDKcqf+OmTchy1riUalnXo0sNrifRGBandKz49OrXJGvUUiNZaZHvdTBeJXcMMzZ2qF18IiELI4ml6C7kCZzf+baNZZzqGW4xMCXbKbEET28oBcoTsEbcA= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zoho.com; s=zohoarc; t=1573530776; h=Cc:Date:From:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:Message-ID:Sender:Subject:To; bh=psnvk1TbTxRFgk+Q0alSuCsUr1kAYQXm37PORV/PuX0=; b=LCfUJglqY7U3lWMmGj2thYPi/CMk8sMUiipF8qEdo8+T3XJx75OtZSb9nGsg18ibq4kb3tIyzYe3v10m05TZscbFizKjBjhaRh9ZeLIv+f0mAaA6emzYpgYBjF4Zv4zDWzszyxzjCLFgPte65c+iW3hpDxgraX7q36iBNzayTKE= ARC-Authentication-Results: i=1; mx.zoho.com; spf=pass (zoho.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1573530776145160.79267920887253; Mon, 11 Nov 2019 19:52:56 -0800 (PST) Received: from localhost ([::1]:58960 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iUNEb-0007XM-C6 for importer@patchew.org; Mon, 11 Nov 2019 22:52:53 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:45078) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iUNDU-0006WI-Qt for qemu-devel@nongnu.org; Mon, 11 Nov 2019 22:51:45 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iUNDS-0003fs-6E for qemu-devel@nongnu.org; Mon, 11 Nov 2019 22:51:43 -0500 Received: from [107.174.27.60] (port=60824 helo=ozlabs.ru) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1iUNDR-0003f0-Oy; Mon, 11 Nov 2019 22:51:42 -0500 Received: from fstn1-p1.ozlabs.ibm.com (localhost [IPv6:::1]) by ozlabs.ru (Postfix) with ESMTP id C5C73AE80382; Mon, 11 Nov 2019 22:44:40 -0500 (EST) From: Alexey Kardashevskiy To: qemu-devel@nongnu.org Subject: [PATCH qemu] scripts: Detect git worktrees for get_maintainer.pl --git Date: Tue, 12 Nov 2019 14:45:32 +1100 Message-Id: <20191112034532.69079-1-aik@ozlabs.ru> X-Mailer: git-send-email 2.17.1 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x [fuzzy] X-Received-From: 107.174.27.60 X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Alexey Kardashevskiy , qemu-trivial@nongnu.org, qemu-ppc@nongnu.org, Paolo Bonzini Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Recent git versions support worktrees where .git is not a directory but a file with a path to the .git repository; however the get_maintainer.pl script only recognises the .git directory, let's fix it. Signed-off-by: Alexey Kardashevskiy Reviewed-by: Greg Kurz Reviewed-by: Stefano Garzarella Tested-by: Stefano Garzarella --- scripts/get_maintainer.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/get_maintainer.pl b/scripts/get_maintainer.pl index 71415e3c7061..27991eb1cfb4 100755 --- a/scripts/get_maintainer.pl +++ b/scripts/get_maintainer.pl @@ -81,7 +81,7 @@ my %VCS_cmds; =20 my %VCS_cmds_git =3D ( "execute_cmd" =3D> \&git_execute_cmd, - "available" =3D> '(which("git") ne "") && (-d ".git")', + "available" =3D> '(which("git") ne "") && (-e ".git")', "find_signers_cmd" =3D> "git log --no-color --follow --since=3D\$email_git_since " . '--format=3D"GitCommit: %H%n' . --=20 2.17.1