Fixes issue with open commit in remote not working

This commit is contained in:
Eric Amodio
2017-04-12 10:58:14 -04:00
parent 9afa06c00d
commit 065300be06

View File

@@ -17,7 +17,7 @@ export class OpenCommitInRemoteCommand extends ActiveEditorCommand {
uri = editor.document.uri; uri = editor.document.uri;
} }
if ((editor && editor.document && editor.document.isDirty) || uri) return undefined; if ((editor && editor.document && editor.document.isDirty) || !uri) return undefined;
const gitUri = await GitUri.fromUri(uri, this.git); const gitUri = await GitUri.fromUri(uri, this.git);
if (!gitUri.repoPath) return undefined; if (!gitUri.repoPath) return undefined;