fix untrustworthiness of import/export remotes
authorJoey Hess <joeyh@joeyh.name>
Mon, 9 May 2022 19:53:23 +0000 (15:53 -0400)
committerJoey Hess <joeyh@joeyh.name>
Mon, 9 May 2022 19:53:23 +0000 (15:53 -0400)
Commit 36133f27c0bd5ba037291420d4b66a3bd8e26308 had a boolean flip in it,
aaargh.

Special remotes with importtree=yes or exporttree=yes are once again
treated as untrusted, since files stored in them can be deleted or modified
at any time.

Sponsored-by: Kevin Mueller on Patreon
CHANGELOG
Remote/Helper/ExportImport.hs

index fa9a9c106d5bb3af2aeafde53f1df688ea49a1e1..70aeedebba2f5c2ecd2fd78b9ec7f0624b692606 100644 (file)
--- a/CHANGELOG
+++ b/CHANGELOG
@@ -1,5 +1,9 @@
 git-annex (10.20220505) UNRELEASED; urgency=medium
 
+  * Special remotes with importtree=yes or exporttree=yes are once again
+    treated as untrusted, since files stored in them can be deleted or
+    modified at any time.
+    (Fixes a reversion in 8.20201129)
   * Added support for "megabit" and related bandwidth units
     in annex.stalldetection and everywhere else that git-annex parses
     data units. Note that the short form is "Mbit" not "Mb" because
index 71911889d1dcd47990023a86855810d58d0fb39d..d753dee66a70c730bc5bb6d80dc8e8f52ab65ab5 100644 (file)
@@ -216,7 +216,7 @@ adjustExportImport' isexport isimport r rs = do
                , untrustworthy =
                        if versioned || thirdPartyPopulated (remotetype r)
                                then untrustworthy r
-                               else False
+                               else True
                -- git-annex testremote cannot be used to test
                -- import/export since it stores keys.
                , mkUnavailable = return Nothing