git: fix null resources

This commit is contained in:
Joao Moreno
2017-01-10 16:14:19 +01:00
parent 189f54e045
commit 7529eebb86
2 changed files with 22 additions and 17 deletions

View File

@@ -9,7 +9,6 @@ import { scm, ExtensionContext, workspace, Uri, window, Disposable } from 'vscod
import * as path from 'path';
import { findGit, Git } from './git';
import { Model } from './model';
import { log } from './util';
import { GitSCMProvider } from './scmProvider';
import { registerCommands } from './commands';
import * as nls from 'vscode-nls';
@@ -52,8 +51,6 @@ async function init(disposables: Disposable[]): Promise<void> {
const model = new Model(repositoryRoot, repository);
const provider = new GitSCMProvider(model);
provider.onDidChange(g => log(g));
const outputChannel = window.createOutputChannel('git');
outputChannel.appendLine(`Using git ${info.version} from ${info.path}`);
git.onOutput(str => outputChannel.append(str), null, disposables);