mirror of
https://github.com/Microsoft/vscode
synced 2024-07-05 01:08:57 +00:00
Don't prompt to publish branch after it was pushed (#188166)
This commit is contained in:
parent
93846caad2
commit
1d96980398
|
@ -191,6 +191,8 @@ export function getVscodeDevHost(): string {
|
||||||
}
|
}
|
||||||
|
|
||||||
export async function ensurePublished(repository: Repository, file: vscode.Uri) {
|
export async function ensurePublished(repository: Repository, file: vscode.Uri) {
|
||||||
|
await repository.status();
|
||||||
|
|
||||||
if ((repository.state.HEAD?.type === RefType.Head || repository.state.HEAD?.type === RefType.Tag)
|
if ((repository.state.HEAD?.type === RefType.Head || repository.state.HEAD?.type === RefType.Tag)
|
||||||
// If HEAD is not published, make sure it is
|
// If HEAD is not published, make sure it is
|
||||||
&& !repository?.state.HEAD?.upstream
|
&& !repository?.state.HEAD?.upstream
|
||||||
|
|
Loading…
Reference in New Issue
Block a user