From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on dcvr.yhbt.net X-Spam-Level: X-Spam-ASN: X-Spam-Status: No, score=-4.2 required=3.0 tests=ALL_TRUSTED,AWL,BAYES_00, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF, T_SCC_BODY_TEXT_LINE shortcircuit=no autolearn=ham autolearn_force=no version=3.4.6 Received: from localhost (dcvr.yhbt.net [127.0.0.1]) by dcvr.yhbt.net (Postfix) with ESMTP id BD80D1F513 for ; Fri, 15 Dec 2023 20:22:50 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=80x24.org; s=selector1; t=1702671770; bh=QEcEDA64zqEBnZDJHUoMMzDiOAPUVl85fPVwPdgwmiY=; h=From:To:Subject:Date:In-Reply-To:References:From; b=SOltUz4Q4Uv6LDAupdiu1H/qMQncksSviDfyhFM64jmPOsll3uasO2YQMw9bl4Ccd 72IFF+Lvm8o07UjzDrNj0wEs9Tf5l11U/te3W2/insLB2jQs7YMd8bXh54x8YGD0Xl Hy6mvIl88d2M19yV7OCmS2CFUpoEpg7LSehLqEj4= From: Eric Wong To: meta@public-inbox.org Subject: [PATCH 4/5] git: quiet down `rev-parse --git-path' errors Date: Fri, 15 Dec 2023 15:22:48 -0500 Message-Id: <20231215202249.3509368-5-e@80x24.org> In-Reply-To: <20231215202249.3509368-1-e@80x24.org> References: <20231215202249.3509368-1-e@80x24.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit List-Id: This fixes t/mda.t with git 1.8.5 --- lib/PublicInbox/Git.pm | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/PublicInbox/Git.pm b/lib/PublicInbox/Git.pm index 9c4d938e..6c4fcf93 100644 --- a/lib/PublicInbox/Git.pm +++ b/lib/PublicInbox/Git.pm @@ -107,7 +107,9 @@ sub git_path ($$) { $d; } else { local $/ = "\n"; - my $s = $self->qx(qw(rev-parse --git-path), $path); + my $rdr = { 2 => \my $err }; + my $s = $self->qx([qw(rev-parse --git-path), $path], + undef, $rdr); chomp $s; # git prior to 2.5.0 did not understand --git-path