Skip to content

Commit 399fd28

Browse files
dschoGit for Windows Build Agent
authored and
Git for Windows Build Agent
committed
Arguments starting with '@@' are no paths
... so let's skip posix-to-windows conversion on such parameters. This fixes Git's t1508-at-combinations.sh. Signed-off-by: Johannes Schindelin <[email protected]>
1 parent cc4c77a commit 399fd28

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

winsup/cygwin/msys2_path_conv.cc

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -381,6 +381,11 @@ path_type find_path_start_and_type(const char** src, int recurse, const char* en
381381
goto skip_p2w;
382382
}
383383
break;
384+
case '@':
385+
// Paths do not contain '@@'
386+
if (it + 1 < end && it[1] == '@')
387+
goto skip_p2w;
388+
}
384389
++it;
385390
}
386391
it = *src;

0 commit comments

Comments
 (0)