Skip to content

Commit

Permalink
Arguments starting with '@@' are no paths
Browse files Browse the repository at this point in the history
... so let's skip posix-to-windows conversion on such parameters.

This fixes Git's t1508-at-combinations.sh.

Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
  • Loading branch information
dscho committed Nov 29, 2023
1 parent 331f11c commit 80323e9
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions winsup/cygwin/msys2_path_conv.cc
Original file line number Diff line number Diff line change
Expand Up @@ -381,6 +381,11 @@ path_type find_path_start_and_type(const char** src, int recurse, const char* en
goto skip_p2w;
}
break;
case '@':
// Paths do not contain '@@'
if (it + 1 < end && it[1] == '@')
goto skip_p2w;
}
++it;
}
it = *src;
Expand Down

0 comments on commit 80323e9

Please sign in to comment.