]> Sergey Matveev's repositories - public-inbox.git/commitdiff
t/config: test --get-urlmatch for git <2.26
authorEric Wong <e@80x24.org>
Sat, 26 Dec 2020 12:30:35 +0000 (12:30 +0000)
committerEric Wong <e@80x24.org>
Sat, 26 Dec 2020 19:27:15 +0000 (19:27 +0000)
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 <alialnu@nvidia.com>
Link: https://public-inbox.org/meta/DM6PR12MB49106F8E3BD697B63B943A22DADB0@DM6PR12MB4910.namprd12.prod.outlook.com/
Tested-by: Ali Alnubani <alialnu@nvidia.com>
t/config.t

index 99a7fef45793ccc2b5e5e8d10c6eddf2922bb42e..7fb44acceea1b90cdd2505fc2bbb3c75e538be7a 100644 (file)
@@ -234,12 +234,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 <<EOF or BAIL_OUT $!;
-[imap "imap://*.example.com"]
+[imap "imap://mail.example.com"]
        pollInterval = 9
 EOF
        close $fh or BAIL_OUT;