Skip to content

Commit 1d96980

Browse files
authored
Don't prompt to publish branch after it was pushed (microsoft#188166)
1 parent 93846ca commit 1d96980

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

extensions/github/src/links.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -191,6 +191,8 @@ export function getVscodeDevHost(): string {
191191
}
192192

193193
export async function ensurePublished(repository: Repository, file: vscode.Uri) {
194+
await repository.status();
195+
194196
if ((repository.state.HEAD?.type === RefType.Head || repository.state.HEAD?.type === RefType.Tag)
195197
// If HEAD is not published, make sure it is
196198
&& !repository?.state.HEAD?.upstream

0 commit comments

Comments
 (0)