HomeSoftware Heritage

Fix GitLoaderFromArchive.

This commit no longer exists in the repository. It may have been part of a branch which was deleted.

Description

Fix GitLoaderFromArchive.

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.

Reviewers: Reviewers, olasd

Reviewed By: Reviewers, olasd

Subscribers: swh-public-ci

Differential Revision: https://forge.softwareheritage.org/D621

Details

Provenance
vlorentzAuthored on Oct 30 2018, 3:44 PM
vlorentzPushed on Oct 31 2018, 10:03 AM
Reviewer
Reviewers
Differential Revision
D621: Fix GitLoaderFromArchive.
Build Status
Buildable 2010
Build 2434: test-and-build

Commit No Longer Exists

This commit no longer exists in the repository.