From e16e09b239b4d8bfd975e5d15be520f01c5da1f6 Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Sat, 26 Dec 2020 12:30:35 +0000 Subject: t/config: test --get-urlmatch for git <2.26 While git 1.8.5 learned --get-urlmatch, git did not learn to match URLs against wildcards until 2.26. So only depend on 1.8.5 for this test since 2.26 is too new. Reported-by: Ali Alnubani Link: https://public-inbox.org/meta/DM6PR12MB49106F8E3BD697B63B943A22DADB0@DM6PR12MB4910.namprd12.prod.outlook.com/ Tested-by: Ali Alnubani (cherry picked from commit 382a2bdd54cfb6c28a935c2b9fe4f1b1c2f469c4) --- t/config.t | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/t/config.t b/t/config.t index ee51c6cc..204fc790 100644 --- a/t/config.t +++ b/t/config.t @@ -236,12 +236,13 @@ EOF } SKIP: { + # XXX wildcard match requires git 2.26+ require_git('1.8.5', 2) or skip 'git 1.8.5+ required for --url-match', 2; my $f = "$tmpdir/urlmatch"; open my $fh, '>', $f or BAIL_OUT $!; print $fh <