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.1 required=3.0 tests=ALL_TRUSTED,AWL,BAYES_00, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF 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 5480D1F428 for ; Mon, 13 Mar 2023 20:17:14 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=80x24.org; s=selector1; t=1678738634; bh=vIPpvDynqW8mnveyuOTpydnw6lZNlCnSRSENsfZpBzA=; h=From:To:Subject:Date:From; b=vZMvMONzCetcu1eOTa2bBRwIz24JecyFlcoLDIdOxG93F/eIk6+CyNbcLQ3YgJcgv Ghk7VtbUZkIATI1wnLpycnY75J06isxtzlCap58hUsZeUhA3v95fZ4i1UpoeGEyi+T Bt5GBcpA+dCO0Scf50nb5MQDcGve+3C2knUYDjd8= From: Eric Wong To: meta@public-inbox.org Subject: [PATCH] t/solver_git: squelch non-UTF-8 commit warning Date: Mon, 13 Mar 2023 20:17:14 +0000 Message-Id: <20230313201714.3533690-1-e@80x24.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit List-Id: We're making an ISO-8859-1 commit for testing purposes, so use i18n.commitEncoding to shut git up. --- t/solver_git.t | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/t/solver_git.t b/t/solver_git.t index 00e58074..9396b7a1 100644 --- a/t/solver_git.t +++ b/t/solver_git.t @@ -253,12 +253,13 @@ SKIP: { $env->{GIT_COMMITTER_NAME} = $env->{GIT_AUTHOR_NAME}; $env->{GIT_COMMITTER_EMAIL} = $env->{GIT_AUTHOR_EMAIL}; my $in = \"$non_utf8\n\nK\x{e5}g\n"; - my $c = xqx([qw(git commit-tree), $t], $env, { 0 => $in }); + my @ct = qw(git -c i18n.commitEncoding=iso-8859-1 commit-tree); + my $c = xqx([@ct, $t], $env, { 0 => $in }); xbail "commit-tree: $?" if $?; chomp($c); $oid{'iso-8859-1'} = $c; - $c = xqx([qw(git commit-tree -p), $c, $t], $env, { 0 => $in }); + $c = xqx([@ct, '-p', $c, $t], $env, { 0 => $in }); xbail "commit-tree: $?" if $?; chomp($c); $oid{'8859-parent'} = $c;