mirror of
https://github.com/microsoft/vscode.git
synced 2026-05-02 22:41:31 +01:00
git: better scoped git behaviour
This commit is contained in:
@@ -41,8 +41,7 @@ async function init(disposables: Disposable[]): Promise<void> {
|
||||
const pathHint = workspace.getConfiguration('git').get<string>('path');
|
||||
const info = await findGit(pathHint);
|
||||
const git = new Git({ gitPath: info.path, version: info.version });
|
||||
const repository = git.open(rootPath);
|
||||
const model = new Model(repository, onWorkspaceChange);
|
||||
const model = new Model(git, rootPath, onWorkspaceChange);
|
||||
|
||||
outputChannel.appendLine(localize('using git', "Using git {0} from {1}", info.version, info.path));
|
||||
git.onOutput(str => outputChannel.append(str), null, disposables);
|
||||
|
||||
Reference in New Issue
Block a user