We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8bb9fd8 commit dc08c79Copy full SHA for dc08c79
src/github/createPRViewProvider.ts
@@ -1303,10 +1303,12 @@ export class CreatePullRequestViewProvider extends BaseCreatePullRequestViewProv
1303
} else {
1304
try {
1305
compareBranch = await this._folderRepositoryManager.repository.getBranch(newBranch);
1306
- await this.model.setCompareBranch(newBranch);
1307
} catch (e) {
1308
vscode.window.showErrorMessage(vscode.l10n.t('Branch does not exist locally.'));
1309
}
+ if (compareBranch) {
1310
+ await this.model.setCompareBranch(newBranch);
1311
+ }
1312
1313
1314
compareBranch = compareBranch ?? await this._folderRepositoryManager.repository.getBranch(this.model.compareBranch);
0 commit comments