]> dgit.raspbian.org Git - git-annex.git/commitdiff
proxied importtree=yes remotes are untrustworthy
authorJoey Hess <joeyh@joeyh.name>
Thu, 8 Aug 2024 19:25:08 +0000 (15:25 -0400)
committerJoey Hess <joeyh@joeyh.name>
Thu, 8 Aug 2024 19:26:02 +0000 (15:26 -0400)
Even without exporttree=yes.

Remote/Git.hs

index 86879119739c249164b2578d03c6598b785b1ade..c9137650b230f816eec53cb04f3e995098f9e12b 100644 (file)
@@ -231,7 +231,8 @@ gen r u rc gc rs
                        , readonly = Git.repoIsHttp r && not (isP2PHttp' gc)
                        , appendonly = False
                        , untrustworthy = isJust (remoteAnnexProxiedBy gc) 
-                               && exportTree c && not (isVersioning c)
+                               && (exportTree c || importTree c) 
+                               && not (isVersioning c)
                        , availability = repoAvail r
                        , remotetype = remote
                        , mkUnavailable = unavailable r u rc gc rs