fix parallel copy from/to a local git repo

Improve handling of parallelization with -J when copying content from/to a
git remote that is a local path.

Sponsored-by: Nicholas Golder-Manning on Patreon
This commit is contained in:
Joey Hess 2022-06-29 12:40:12 -04:00
parent 54baa480b6
commit 21c50c0f72
No known key found for this signature in database
GPG key ID: DB12DB0FF05F8F38
3 changed files with 22 additions and 5 deletions

View file

@ -24,3 +24,13 @@ would make sense to.)
git-annex version: 8.20201103 --[[Joey]]
> Reproduced with 10.20220625. 3 100 mb files and copy to a local git repo.
> Also, `copy --from` and `get` do have the problem, at least they do now.
> --[[Joey]]
> The problem is that Remote.Git.onLocal uses a MVar for the remote state,
> and the copy runs in that. So while one copy is running, the rest block.
> So fixing this will need a pool of local remote states.
> --[[Joey]]
>> [[fixed|done]] --[[Joey]]