Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WSL compatibility #16378

Open
wants to merge 12 commits into
base: development
Choose a base branch
from
Prev Previous commit
Next Next commit
fix: reset in WSL
  • Loading branch information
schummar committed Mar 22, 2023
commit b8a705bb5a0d7b2a871d91142931c6de1467f7c4
6 changes: 5 additions & 1 deletion app/src/lib/git/reset.ts
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,11 @@ export async function resetPaths(

const baseArgs = resetModeToArgs(mode, ref)

if (__WIN32__ && mode === GitResetMode.Mixed) {
if (
__WIN32__ &&
mode === GitResetMode.Mixed &&
!repository.path.match(/\\wsl(\$|\.localhost)\\/)
) {
// Git for Windows has experimental support for reading paths to reset
// from standard input. This is helpful in situations where your file
// paths are greater than 32KB in length, because of shell limitations.
Expand Down