Page MenuHomeSoftware Heritage

Fix GitLoaderFromArchive.
ClosedPublic

Authored by vlorentz on Oct 30 2018, 3:45 PM.

Details

Summary

SWHLoader calls prepare(); and if prepare() fails, it calls cleanup().
However, GitLoaderFromArchive.cleanup() uses self.temp_dir and self.repo_path,
so they have to be initialized.

Additionally, GitLoaderFromArchive.prepare_origin_visit does not accept
the same argument name as its parent, so it fails when called by
GitLoaderFromArchive.load.

Diff Detail

Repository
rDLDG Git loader
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.

Event Timeline

This revision is now accepted and ready to land.Oct 30 2018, 6:14 PM
This revision was automatically updated to reflect the committed changes.