Skip to content

Conversation

@leplatrem
Copy link
Contributor

except pygit2.AlreadyExistsError: # pragma: no cover
print(f"Tag {tag_name} already exists, skipping.")
tag_exists = repo.references.get(f"refs/tags/{tag_name}") is not None
if tag_exists:
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we should consider breaking repo_sync_content into multiple smaller functions to make unit testing easier. We can do that as a follow-up PR if we want to push this out quickly though.

Copy link
Contributor

@alexcottner alexcottner left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Have a suggestion but we could do that as a follow-up

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants