Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit e070273

Browse files
committed
git-dot: exclude obsolete remote refs
if a remote ref points to a commit that doesn't exist in the local repository, discard the reference
1 parent 054f051 commit e070273

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

‎git-dot‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -154,6 +154,8 @@ def main(output, render, view, format, flag_remote, flag_tags,
154154
'--format=%(objectname) %(refname:short)',
155155
f'refs/remotes/{remote}/').splitlines():
156156
refid, ref = info.split()
157+
if refid not in seen:
158+
continue
157159
remote_heads.node(ref)
158160
branch_links.add((ref, _shortref(refid)))
159161
graph.subgraph(remote_heads)

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /