Skip to content

Commit

Permalink
fix: use the constant for tag references selection
Browse files Browse the repository at this point in the history
Co-authored-by: Alex Lowe <[email protected]>
  • Loading branch information
sergiusens and lengau authored Dec 1, 2023
1 parent 36e82f5 commit 57a80ec
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions snapcraft/remote/git.py
Original file line number Diff line number Diff line change
Expand Up @@ -182,10 +182,8 @@ def push_url(
)

# Create a list of tags to push
# From https://www.pygit2.org/references.html#pygit2.repository.References.iterator
# 2 -> GIT_REFERENCES_TAGS, fetches only tags
if push_tags:
tag_refs = [t.name for t in self._repo.references.iterator(2)]
tag_refs = [t.name for t in self._repo.references.iterator(pygit2.GIT_REFERENCES_TAGS)]
else:
tag_refs = []
try:
Expand Down

0 comments on commit 57a80ec

Please sign in to comment.