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,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 0E7401F565 for ; Sun, 1 Oct 2023 09:54:30 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=80x24.org; s=selector1; t=1696154070; bh=UBh/qawYewvFBUIKU47gl5LuSlZh6d237TLJBcFEHAY=; h=From:To:Subject:Date:In-Reply-To:References:From; b=KgybWl7K3sEULk5F2c2Cr31sGHhcRDPu/1wtsZ8zPV9ZFc00nmIqx1w/rSpna9xb1 mBuQU6jGhD2kGmaFfsVsbOuqYApsIw6z5btDnBFsEsbUfYW+/eUiHELFKJ8Y+L1Zpn sHqqxtVjGelJYlEj7jH1tOOFQAwNs4jgwD5p0v3Q= From: Eric Wong To: meta@public-inbox.org Subject: [PATCH 02/13] t/git: show git_version in diag output Date: Sun, 1 Oct 2023 09:54:18 +0000 Message-ID: <20231001095429.2092610-3-e@80x24.org> In-Reply-To: <20231001095429.2092610-1-e@80x24.org> References: <20231001095429.2092610-1-e@80x24.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit List-Id: This is useful to ensure we're testing properly with git <= 2.35 to ensure we don't break --batch-check support for those users. --- t/git.t | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/t/git.t b/t/git.t index bde6d35b..b7df6186 100644 --- a/t/git.t +++ b/t/git.t @@ -1,8 +1,7 @@ #!perl -w # Copyright (C) all contributors # License: AGPL-3.0+ -use strict; -use v5.10.1; +use v5.12; use PublicInbox::TestCommon; my ($dir, $for_destroy) = tmpdir(); use PublicInbox::Import; @@ -205,4 +204,5 @@ is(git_quote($s = "hello\nworld"), '"hello\\nworld"', 'quoted LF'); is(git_quote($s = "hello\x06world"), '"hello\\006world"', 'quoted \\x06'); is(git_unquote($s = '"hello\\006world"'), "hello\x06world", 'unquoted \\x06'); -done_testing(); +diag 'git_version='.sprintf('%vd', PublicInbox::Git::git_version()); +done_testing;