Browse Source

Module puts to storage directly

tags/v1.1
JustAnotherArchivist 1 year ago
parent
commit
d42ee45bb2
2 changed files with 3 additions and 1 deletions
  1. +0
    -1
      codearchiver/cli.py
  2. +3
    -0
      codearchiver/modules/git.py

+ 0
- 1
codearchiver/cli.py View File

@@ -197,7 +197,6 @@ def main():
os.chdir(td)
try:
result = module.process()
storage.put_result(result)
finally:
os.chdir('..')



+ 3
- 0
codearchiver/modules/git.py View File

@@ -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):


Loading…
Cancel
Save