Переглянути джерело

Fixes error when there is no branches yet

main
Eric Amodio 7 роки тому
джерело
коміт
ab417eadbe
1 змінених файлів з 3 додано та 2 видалено
  1. +3
    -2
      src/commands/showQuickCurrentBranchHistory.ts

+ 3
- 2
src/commands/showQuickCurrentBranchHistory.ts Переглянути файл

@ -17,9 +17,10 @@ export class ShowQuickCurrentBranchHistoryCommand extends ActiveEditorCachedComm
}
try {
const branch = (await this.git.getBranch(this.git.repoPath)).name;
const branch = await this.git.getBranch(this.git.repoPath);
if (!branch) return undefined;
return commands.executeCommand(Commands.ShowQuickBranchHistory, uri, branch, undefined, goBackCommand);
return commands.executeCommand(Commands.ShowQuickBranchHistory, uri, branch.name, undefined, goBackCommand);
}
catch (ex) {
Logger.error(ex, 'ShowQuickCurrentBranchHistoryCommand');

||||||
x
 
000:0
Завантаження…
Відмінити
Зберегти