graft in imported tree to avoid gc

Fix a bug that could prevent getting files from an importtree=yes remote,
because the imported tree was allowed to be garbage collected.
This commit is contained in:
Joey Hess 2020-12-23 14:27:38 -04:00
parent c6e693b25d
commit 7916fc98a3
No known key found for this signature in database
GPG key ID: DB12DB0FF05F8F38
5 changed files with 58 additions and 34 deletions

View file

@ -3,3 +3,8 @@ does not seem to get grafted into the git-annex branch, so
would be subject to being lost to GC.
Is this a general problem affecting importtree too?
> Yes, it was. It would have only caused a problem if the user
> kept doing imports from a remote, but never exporting to it.
> Then, in a clone of the repo that was importing, they would not be able
> to get files. [[fixed|done]] --[[Joey]]