提交 05750015 编写于 作者: A Anthony Van de Gejuchte

Move env declaration of GIT_PAGER

上级 7374bff9
...@@ -540,7 +540,8 @@ export class Git { ...@@ -540,7 +540,8 @@ export class Git {
options.env = assign({}, process.env, this.env, options.env || {}, { options.env = assign({}, process.env, this.env, options.env || {}, {
VSCODE_GIT_COMMAND: args[0], VSCODE_GIT_COMMAND: args[0],
LC_ALL: 'en_US.UTF-8', LC_ALL: 'en_US.UTF-8',
LANG: 'en_US.UTF-8' LANG: 'en_US.UTF-8',
GIT_PAGER: ''
}); });
if (options.cwd) { if (options.cwd) {
......
...@@ -36,9 +36,7 @@ async function createModel(context: ExtensionContext, outputChannel: OutputChann ...@@ -36,9 +36,7 @@ async function createModel(context: ExtensionContext, outputChannel: OutputChann
const pathHint = workspace.getConfiguration('git').get<string>('path'); const pathHint = workspace.getConfiguration('git').get<string>('path');
const info = await findGit(pathHint, path => outputChannel.appendLine(localize('looking', "Looking for git in: {0}", path))); const info = await findGit(pathHint, path => outputChannel.appendLine(localize('looking', "Looking for git in: {0}", path)));
let env: any = { let env: any = {};
GIT_PAGER: ''
};
let ipc: IIPCServer | undefined; let ipc: IIPCServer | undefined;
try { try {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册