about summary refs log tree commit homepage
diff options
context:
space:
mode:
-rw-r--r--t/common.perl4
1 files changed, 3 insertions, 1 deletions
diff --git a/t/common.perl b/t/common.perl
index e49a5965..5a898e32 100644
--- a/t/common.perl
+++ b/t/common.perl
@@ -3,6 +3,8 @@
 
 use Fcntl qw(FD_CLOEXEC F_SETFD F_GETFD);
 use POSIX qw(dup2);
+use strict;
+use warnings;
 
 sub stream_to_string {
         my ($res) = @_;
@@ -48,7 +50,7 @@ sub require_git ($;$) {
         my $cur_int = ($cur_maj << 24) | ($cur_min << 16);
         if ($cur_int < $req_int) {
                 return 0 if $maybe;
-                plan skip_all => "git $req+ required, have $git_ver";
+                plan skip_all => "git $req+ required, have $cur_maj.$cur_min";
         }
         1;
 }