Git - handle deleted remote branches (#239723)

This commit is contained in:
Ladislau Szomoru
2025-02-05 21:14:31 +01:00
committed by GitHub
parent 2ea6f55705
commit 85e32ec765

View File

@@ -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,