Skip to content

Commit 3f38385

Browse files
authored
Merge pull request #2010 from timbrel/upstream-gone
2 parents 8d449bf + 9f8465e commit 3f38385

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

core/git_mixins/branches.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ def compute_branches_to_show(self, branch_name: str) -> list[str] | None:
7171
if branch_name == "HEAD"
7272
else b.canonical_name == branch_name
7373
):
74-
if b.upstream:
74+
if b.upstream and b.upstream.status != "gone":
7575
return [b.canonical_name, b.upstream.canonical_name]
7676
else:
7777
return [b.canonical_name]

0 commit comments

Comments
 (0)