summaryrefslogtreecommitdiff
path: root/Types/Remote.hs
diff options
context:
space:
mode:
authorJoey Hess <joeyh@joeyh.name>2017-09-04 12:40:33 -0400
committerJoey Hess <joeyh@joeyh.name>2017-09-04 13:09:38 -0400
commit28e2cad84989f96699f15ccbc9a48f8a27cccb32 (patch)
treec39bf0bb45a5150fd6189d2f965b21a5d14a5a99 /Types/Remote.hs
parenta4328b49d2d0e07815db4d92b1176fe4bed16cf5 (diff)
implement exporttree=yes configuration
* Only export to remotes that were initialized to support it. * Prevent storing key/value on export remotes. * Prevent enabling exporttree=yes and encryption in the same remote. SetupStage Enable was changed to take the old RemoteConfig. This allowed only setting exporttree when initially setting up a remote, and not configuring it later after stuff might already be stored in the remote. Went with =yes rather than =true for consistency with other parts of git-annex. Changed docs accordingly. This commit was supported by the NSF-funded DataLad project.
Diffstat (limited to 'Types/Remote.hs')
-rw-r--r--Types/Remote.hs3
1 files changed, 1 insertions, 2 deletions
diff --git a/Types/Remote.hs b/Types/Remote.hs
index 169701eccb..a0174ebee4 100644
--- a/Types/Remote.hs
+++ b/Types/Remote.hs
@@ -44,8 +44,7 @@ type RemoteConfigKey = String
type RemoteConfig = M.Map RemoteConfigKey String
-data SetupStage = Init | Enable
- deriving (Eq)
+data SetupStage = Init | Enable RemoteConfig
{- There are different types of remotes. -}
data RemoteTypeA a = RemoteType {