Skip to content
Snippets Groups Projects

loader: Fix empty pack file handling since dulwich 0.21

dulwich >= 0.21 raises an AssertionError when the pack is empty rather than setting the PackData version and length to None.

So do not try to access the pack file when its size is 0.

Fixes #4747 (closed)

Please note the CI will fail due to a mypy error (I fixed it but it has not been released yet).

Merge request reports

Pipeline #509 failed

Pipeline failed for 8994b24e on anlambert:fix-empty-pack-file-with-latest-dulwich

Merged by Antoine LambertAntoine Lambert 2 years ago (Feb 10, 2023 3:35pm UTC)

Loading

Pipeline #574 failed

Pipeline failed for 8994b24e on master

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
Please register or sign in to reply
Loading