Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pygit2: convert libgit2/pygit2 timezone offsets to standard git offsets #279

Merged
merged 2 commits into from
Oct 17, 2023

Conversation

pmrowla
Copy link
Contributor

@pmrowla pmrowla commented Oct 17, 2023

libgit2 returns tz offset in minutes from UTC but git internals (and git-python + dulwich) use seconds from UTC. Our scmrepo git objects should use seconds for consistency

see: https://github.com/iterative/gto/pull/425/files#r1350738275

@pmrowla pmrowla self-assigned this Oct 17, 2023
@codecov-commenter
Copy link

codecov-commenter commented Oct 17, 2023

Codecov Report

Attention: 5 lines in your changes are missing coverage. Please review.

Files Coverage Δ
src/scmrepo/git/backend/pygit2/__init__.py 76.33% <ø> (ø)
src/scmrepo/git/objects.py 73.18% <61.53%> (-1.22%) ⬇️

📢 Thoughts on this report? Let us know!.

@pmrowla pmrowla merged commit a2c78a1 into iterative:main Oct 17, 2023
13 checks passed
@pmrowla pmrowla deleted the pygit2-tz-offset branch October 17, 2023 12:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants