mirror of
https://github.com/ckaczor/vscode-gitlens.git
synced 2026-02-16 18:48:45 -05:00
Fixes issue with open commit in remote not working
This commit is contained in:
@@ -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;
|
||||||
|
|||||||
Reference in New Issue
Block a user