mirror of
https://github.com/ckaczor/vscode-gitlens.git
synced 2026-02-09 01:32:40 -05:00
Changes Repository History to Branch History
This commit is contained in:
@@ -18,7 +18,7 @@ export class CopyShaToClipboardCommand extends ActiveEditorCommand {
|
||||
}
|
||||
|
||||
try {
|
||||
// If we don't have an editor then get the sha of the last commit to the repository
|
||||
// If we don't have an editor then get the sha of the last commit to the branch
|
||||
if (!uri) {
|
||||
const log = await this.git.getLogForRepo(this.repoPath, undefined, 1);
|
||||
if (!log) return undefined;
|
||||
|
||||
Reference in New Issue
Block a user