Skip to content

Commit 379db4b

Browse files
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 9ee8a80 commit 379db4b

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
@@ -375,6 +375,11 @@ path_type find_path_start_and_type(const char** src, int recurse, const char* en
375375
goto skip_p2w;
376376
}
377377
break;
378+
case '@':
379+
// Paths do not contain '@@'
380+
if (it + 1 < end && it[1] == '@')
381+
goto skip_p2w;
382+
}
378383
++it;
379384
}
380385
it = *src;

0 commit comments

Comments
 (0)