-
-
Notifications
You must be signed in to change notification settings - Fork 346
another parsing failure of malformed author/committer timestamp #1322
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
Labels
acknowledged
an issue is accepted as shortcoming to be fixed
Comments
According to gitpython-developers/GitPython#741 (which you commented on, @Byron :)), jGit falls back to UTC. That seems reasonable to me. |
Thanks for digging up this gem from 6 years ago… will I ever learn ;)? I plan to fix this tomorrow similar to how it's done in GitPython, even though I will double-check to see what happens in Git. The fix will then be released right away as well. |
Byron
added a commit
that referenced
this issue
Mar 18, 2024
That way this won't fail, but *just* silently degenerates information. The idea is that during FSCK, objects should be decoded and then re-encoded to see if they are still the same. If not, this means some leniency kicked in. Maybe for FSCK, there would also have to be a refactor so there is a lenient and strict parsing mode. One problem at a time.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Current behavior 😯
gix
fails to parse the following commit because the timezone is invalid:rails/rails@4cf9497
Expected behavior 🤔
I have no idea what's the most reasonable behavior. On one hand, the current behavior is correct because the commit object is malformed. On the other hand, it's often useful to get lossy parsing output because author/committer metadata isn't so important compared to tree/parent hashes.
This is similar to #950.
Git behavior
git show
works (maybe because it doesn't parse the timestamp strictly?)git fsck
reports the error.Steps to reproduce 🕹
No response
The text was updated successfully, but these errors were encountered: