Skip to content

Commit 110c909

Browse files
authored
Add logging to see if get commit times out (#5871)
Part of #5865
1 parent 105f578 commit 110c909

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/github/createPRViewProviderNew.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -232,6 +232,9 @@ export class CreatePullRequestViewProviderNew extends WebviewViewBase implements
232232
useBranchName = defaultBranch !== compareBranch.name;
233233
}
234234

235+
if (name && !lastCommit) {
236+
Logger.appendLine('Timeout getting last commit message', CreatePullRequestViewProviderNew.ID);
237+
}
235238
// Set title
236239
if (useBranchName && name) {
237240
title = `${name.charAt(0).toUpperCase()}${name.slice(1)}`;

0 commit comments

Comments
 (0)