loader: Fix empty pack file handling since dulwich 0.21
Merged
requested to merge anlambert/swh-loader-git:fix-empty-pack-file-with-latest-dulwich into master
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
Activity
Filter activity
Jenkins job DLDG/gitlab-builds #2 failed .
See Console Output and Coverage Report for more details.
Please register or sign in to reply