Browse Source

Normalizes slashes

Refs: #2680
main
Eric Amodio 1 year ago
parent
commit
c20ff5131e
2 changed files with 3 additions and 2 deletions
  1. +1
    -1
      src/env/node/git/git.ts
  2. +2
    -1
      src/env/node/git/shell.ts

+ 1
- 1
src/env/node/git/git.ts View File

@ -2056,7 +2056,7 @@ export class Git {
const scope = getLogScope();
const location = await this.getLocation();
const git = location.path ?? 'git';
const git = normalizePath(location.path ?? 'git');
const coreEditorConfig = configuration.get('terminal.overrideGitEditor')
? `-c "core.editor=${getEditorCommand()}" `

+ 2
- 1
src/env/node/git/shell.ts View File

@ -6,6 +6,7 @@ import { join as joinPaths } from 'path';
import * as process from 'process';
import type { CancellationToken } from 'vscode';
import { Logger } from '../../../system/logger';
import { normalizePath } from '../../../system/path';
export const isWindows = process.platform === 'win32';
@ -124,7 +125,7 @@ export async function getWindowsShortPath(path: string): Promise {
return;
}
resolve(stdout.trim().replace(/\\/g, '/'));
resolve(normalizePath(stdout.trim()));
});
});
}

Loading…
Cancel
Save