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
Branch
GitLoaderFromArchive
Lint
No Linters Available
Unit
No Unit Test Coverage
Build Status
Buildable 2007
Build 2430: tox-on-jenkinsJenkins
Build 2429: arc lint + arc unit

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.