Browse Source

Fixes missing quotes and logs profile

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

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

@ -2073,9 +2073,8 @@ export class Git {
const profile = configuration.getAny<CoreConfiguration, string | null>(
'terminal.integrated.defaultProfile.windows',
);
if (equalsIgnoreCase(profile, 'Powershell')) {
shortenedPath = `& "${shortenedPath}"`;
}
Logger.debug(scope, `\u2022 short path '${shortenedPath}' contains spaces, profile '${profile}'`);
shortenedPath = `${equalsIgnoreCase(profile, 'powershell') ? '& ' : ''}"${shortenedPath}"`;
}
text = `${shortenedPath} -C "${cwd}" ${coreEditorConfig}${command} ${parsedArgs.join(' ')}`;

Loading…
Cancel
Save