Skip to content

Commit 4f38e72

Browse files
committed
fixup! mingw: do not special-case .exe files anymore
We did it differently, after all, before contributing the patches upstream that make the test suite pass on Windows (see "mingw: fix t5601-clone.sh"). Signed-off-by: Johannes Schindelin <[email protected]>
1 parent c894f09 commit 4f38e72

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

compat/mingw.c

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1049,6 +1049,11 @@ static const char *parse_interpreter(const char *cmd)
10491049
char *p, *opt;
10501050
int n, fd;
10511051

1052+
/* don't even try a .exe */
1053+
n = strlen(cmd);
1054+
if (n >= 4 && !strcasecmp(cmd+n-4, ".exe"))
1055+
return NULL;
1056+
10521057
fd = open(cmd, O_RDONLY);
10531058
if (fd < 0)
10541059
return NULL;

0 commit comments

Comments
 (0)