From 68daebe359cb5836a8b700032f30f475a7e93c94 Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Sun, 1 Oct 2023 09:54:18 +0000 Subject: [PATCH] t/git: show git_version in diag output 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 bde6d35b8..b7df6186a 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; -- 2.47.2