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

Move env declaration of GIT_PAGER

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