We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents a466ef0 + 3306f65 commit fac9106Copy full SHA for fac9106
1 file changed
t/t0021/rot13-filter.pl
@@ -31,7 +31,22 @@
31
#
32
33
use 5.008;
34
-use lib (split(/:/, $ENV{GITPERLLIB}));
+sub gitperllib {
35
+ # Git assumes that all path lists are Unix-y colon-separated ones. But
36
+ # when the Git for Windows executes the test suite, its MSYS2 Bash
37
+ # calls git.exe, and colon-separated path lists are converted into
38
+ # Windows-y semicolon-separated lists of *Windows* paths (which
39
+ # naturally contain a colon after the drive letter, so splitting by
40
+ # colons simply does not cut it).
41
+ #
42
+ # Detect semicolon-separated path list and handle them appropriately.
43
+
44
+ if ($ENV{GITPERLLIB} =~ /;/) {
45
+ return split(/;/, $ENV{GITPERLLIB});
46
+ }
47
+ return split(/:/, $ENV{GITPERLLIB});
48
+}
49
+use lib (gitperllib());
50
use strict;
51
use warnings;
52
use IO::File;
0 commit comments