Skip to content

Commit

Permalink
Adding deletion of old tag references
Browse files Browse the repository at this point in the history
  • Loading branch information
mjgaughan committed Jun 28, 2024
1 parent dc87cfa commit e0071d0
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions perceval/backends/core/git.py
Original file line number Diff line number Diff line change
Expand Up @@ -1299,6 +1299,8 @@ def _update_references(self, refs):
for old_ref in self._discover_refs():
if not old_ref.refname.startswith('refs/heads/'):
continue
if not old_ref.refname.startswith('refs/tags/'):
continue
if old_ref.refname in new_refs:
continue
self._update_ref(old_ref, delete=True)
Expand Down

0 comments on commit e0071d0

Please sign in to comment.