summaryrefslogtreecommitdiff
path: root/Remote/Bup.hs
diff options
context:
space:
mode:
authorJoey Hess <joeyh@joeyh.name>2017-09-07 13:45:31 -0400
committerJoey Hess <joeyh@joeyh.name>2017-09-07 13:48:44 -0400
commit16eb2f976c7b217ae23411ef10ec23f0592cc9bc (patch)
treefdce10133af72faff1a581c5adf16fd6346d5902 /Remote/Bup.hs
parent45d30820ac71d61802884047ccedd3ed60c5cb07 (diff)
prevent exporttree=yes on remotes that don't support exports
Don't allow "exporttree=yes" to be set when the special remote does not support exports. That would be confusing since the user would set up a special remote for exports, but `git annex export` to it would later fail. This commit was supported by the NSF-funded DataLad project.
Diffstat (limited to 'Remote/Bup.hs')
-rw-r--r--Remote/Bup.hs13
1 files changed, 7 insertions, 6 deletions
diff --git a/Remote/Bup.hs b/Remote/Bup.hs
index 6ff2aa885a..4180cbb7d4 100644
--- a/Remote/Bup.hs
+++ b/Remote/Bup.hs
@@ -35,12 +35,13 @@ import Utility.Metered
type BupRepo = String
remote :: RemoteType
-remote = RemoteType {
- typename = "bup",
- enumerate = const (findSpecialRemotes "buprepo"),
- generate = gen,
- setup = bupSetup
-}
+remote = RemoteType
+ { typename = "bup"
+ , enumerate = const (findSpecialRemotes "buprepo")
+ , generate = gen
+ , setup = bupSetup
+ , exportSupported = exportUnsupported
+ }
gen :: Git.Repo -> UUID -> RemoteConfig -> RemoteGitConfig -> Annex (Maybe Remote)
gen r u c gc = do