Skip to content
Snippets Groups Projects
Commit 8932cbc8 authored by Antoine Lambert's avatar Antoine Lambert
Browse files

Fix some formatting after black version bump

parent 8798b3d2
Branches master
No related tags found
No related merge requests found
...@@ -43,8 +43,7 @@ class VaultInterface(Protocol): ...@@ -43,8 +43,7 @@ class VaultInterface(Protocol):
... ...
@remote_api_endpoint("progress") @remote_api_endpoint("progress")
def progress(self, bundle_type: str, swhid: CoreSWHID): def progress(self, bundle_type: str, swhid: CoreSWHID): ...
...
# Cookers endpoints # Cookers endpoints
......
...@@ -224,9 +224,10 @@ def cook_extract_directory_gitfast(storage, swhid, fsck=True, direct_objstorage= ...@@ -224,9 +224,10 @@ def cook_extract_directory_gitfast(storage, swhid, fsck=True, direct_objstorage=
) )
storage.revision_add([revision]) storage.revision_add([revision])
with cook_stream_revision_gitfast( with (
storage, revision.swhid() cook_stream_revision_gitfast(storage, revision.swhid()) as stream,
) as stream, test_repo as p: test_repo as p,
):
processor = dulwich.fastexport.GitImportProcessor(test_repo.repo) processor = dulwich.fastexport.GitImportProcessor(test_repo.repo)
processor.import_stream(stream) processor.import_stream(stream)
test_repo.checkout(b"HEAD") test_repo.checkout(b"HEAD")
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment