proxied exporttree=yes versionedexport=yes remotes are not untrusted
This removes versionedExport, which was only used by the S3 special remote. Instead, versionedexport=yes is a common way for remotes to indicate that they are versioned.
This commit is contained in:
parent
5c36177e58
commit
3ea835c7e8
16 changed files with 23 additions and 53 deletions
|
@ -44,6 +44,7 @@ import Annex.Transfer
|
|||
import Annex.CheckIgnore
|
||||
import Annex.CatFile
|
||||
import Annex.VectorClock
|
||||
import Annex.SpecialRemote.Config
|
||||
import Command
|
||||
import Backend
|
||||
import Types.Key
|
||||
|
@ -194,7 +195,7 @@ recordImportTree remote importtreeconfig imported = do
|
|||
_ -> noop
|
||||
-- When the remote is versioned, it still contains keys
|
||||
-- that are not present in the new tree.
|
||||
unless (Remote.versionedExport (Remote.exportActions remote)) $ do
|
||||
unless (isVersioning (Remote.config remote)) $ do
|
||||
db <- Export.openDb (Remote.uuid remote)
|
||||
forM_ (exportedTreeishes oldexport) $ \oldtree ->
|
||||
Export.runExportDiffUpdater updater db oldtree finaltree
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue