]> dgit.raspbian.org Git - git-annex.git/commit
strong verification on retrieval from annexobjects location
authorJoey Hess <joeyh@joeyh.name>
Sun, 4 Aug 2024 15:17:42 +0000 (11:17 -0400)
committerJoey Hess <joeyh@joeyh.name>
Sun, 4 Aug 2024 15:24:21 +0000 (11:24 -0400)
commitee076b68f51e9ae4d4a0e9f4cd1efffb9dce538b
tree6d1d518ede7e51366fa440ff33a8cefaac06d929
parentfe01a1e7e1a8ee938139732ad0c2ef293fcb4f2f
strong verification on retrieval from annexobjects location

The file in the annexobjects location may have been renamed from a
previously exported file that got deleted in a subsequent export.
Or it may be renamed to annexobjects temporarily before being renamed to
another name (to handle eg pairwise renames).

But, an exported file is not guaranteed to contain the content of the
key that the local repository last exported there. Another tree could
have been exported from elsewhere in the meantime.

So, files in annexobjects do not necessarily have the content of their
key. And so have to be strongly verified when retrieving. The same as
is done when retrieving exported files.
Remote/Helper/ExportImport.hs
doc/todo/exporttree_remotes_could_store_any_key.mdwn
doc/todo/git-annex_proxies.mdwn