Browse Source

Fixes issue with open commit in remote not working

main
Eric Amodio 7 years ago
parent
commit
065300be06
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      src/commands/openCommitInRemote.ts

+ 1
- 1
src/commands/openCommitInRemote.ts View File

@ -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;

Loading…
Cancel
Save