We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0b40721 commit 080d4c3Copy full SHA for 080d4c3
src/core/git/exec-base.ts
@@ -17,8 +17,9 @@ export const execBase = (
17
token?: vscode.CancellationToken
18
): Promise<ExecResult> => {
19
return new Promise((resolve, reject) => {
20
+ const gitPath = vscode.workspace.getConfiguration('git').get<string>('path', 'git');
21
logger.log(`'Running in' ${cwd}`);
- logger.log(`> ${['git'].concat(args || []).join(' ')}`);
22
+ logger.log(`> ${[gitPath].concat(args || []).join(' ')}`);
23
const httpProxy = Config.get('httpProxy', '');
24
let env = process.env;
25
if (httpProxy) {
@@ -28,7 +29,7 @@ export const execBase = (
28
29
});
30
}
31
- const proc = cp.spawn('git', args, {
32
+ const proc = cp.spawn(gitPath, args, {
33
cwd,
34
env: {
35
...env,
0 commit comments