From 065300be0628cee916c332153ca3036d9ef25dc4 Mon Sep 17 00:00:00 2001 From: Eric Amodio Date: Wed, 12 Apr 2017 10:58:14 -0400 Subject: [PATCH] Fixes issue with open commit in remote not working --- src/commands/openCommitInRemote.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/commands/openCommitInRemote.ts b/src/commands/openCommitInRemote.ts index c3eb44d..aae3901 100644 --- a/src/commands/openCommitInRemote.ts +++ b/src/commands/openCommitInRemote.ts @@ -17,7 +17,7 @@ export class OpenCommitInRemoteCommand extends ActiveEditorCommand { 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); if (!gitUri.repoPath) return undefined;