File tree Expand file tree Collapse file tree 1 file changed +16
-1
lines changed Expand file tree Collapse file tree 1 file changed +16
-1
lines changed Original file line number Diff line number Diff line change 31
31
#
32
32
33
33
use 5.008;
34
- use lib (split (/ :/ , $ENV {GITPERLLIB }));
34
+ 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());
35
50
use strict;
36
51
use warnings;
37
52
use IO::File;
You can’t perform that action at this time.
0 commit comments