]> git.ipfire.org Git - thirdparty/public-inbox.git/commitdiff
t/git: show git_version in diag output
authorEric Wong <e@80x24.org>
Sun, 1 Oct 2023 09:54:18 +0000 (09:54 +0000)
committerEric Wong <e@80x24.org>
Sun, 1 Oct 2023 22:41:41 +0000 (22:41 +0000)
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

diff --git a/t/git.t b/t/git.t
index bde6d35b8410564cc975b997f5a45ae331433d7f..b7df6186aee296799470e3cb15a64134b244c08a 100644 (file)
--- a/t/git.t
+++ b/t/git.t
@@ -1,8 +1,7 @@
 #!perl -w
 # Copyright (C) all contributors <meta@public-inbox.org>
 # License: AGPL-3.0+ <https://www.gnu.org/licenses/agpl-3.0.txt>
-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;