diff --git a/codearchiver/cli.py b/codearchiver/cli.py index ef471e6..1affcc8 100644 --- a/codearchiver/cli.py +++ b/codearchiver/cli.py @@ -197,7 +197,6 @@ def main(): os.chdir(td) try: result = module.process() - storage.put_result(result) finally: os.chdir('..') diff --git a/codearchiver/modules/git.py b/codearchiver/modules/git.py index f364896..e70e889 100644 --- a/codearchiver/modules/git.py +++ b/codearchiver/modules/git.py @@ -175,6 +175,9 @@ class Git(codearchiver.core.Module): for oid, otype in indexObjects.items(): metadata.append('Object', f'{oid} {otype}') + if self._storage: + self._storage.put(bundle, metadata) + return codearchiver.core.Result(id = self._id, files = [(bundle, metadata)]) def __repr__(self):