mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-28 04:23:32 +01:00
Git - handle deleted remote branches (#239723)
This commit is contained in:
@@ -2759,7 +2759,7 @@ export class Repository {
|
||||
return {
|
||||
type: RefType.Head,
|
||||
name: branchName,
|
||||
upstream: upstream ? {
|
||||
upstream: upstream !== '' && status !== '[gone]' ? {
|
||||
name: upstreamRef ? upstreamRef.substring(11) : upstream.substring(index + 1),
|
||||
remote: remoteName ? remoteName : upstream.substring(0, index)
|
||||
} : undefined,
|
||||
|
||||
Reference in New Issue
Block a user