We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fae6c63 commit 6b3ef53Copy full SHA for 6b3ef53
src/scmrepo/git/lfs/client.py
@@ -190,15 +190,10 @@ async def _download(
190
**kwargs,
191
):
192
async def _get_one(from_path: str, to_path: str, **kwargs):
193
- get_coro = callback.wrap_and_branch_coro(
194
- self.httpfs._get_file # pylint: disable=protected-access
195
- )
196
with as_atomic(localfs, to_path, create_parents=True) as tmp_file:
197
- return await get_coro(
198
- from_path,
199
- tmp_file,
200
- **kwargs,
201
+ with callback.branch(from_path, tmp_file, kwargs):
+ await self.httpfs._get_file(from_path, tmp_file, **kwargs) # pylint: disable=protected-access
+ callback.relative_update()
202
203
resp_data = await self._batch_request(objects, **kwargs)
204
if resp_data.get("transfer") != "basic":
0 commit comments