diff options
author | Joey Hess <joeyh@joeyh.name> | 2017-09-07 13:45:31 -0400 |
---|---|---|
committer | Joey Hess <joeyh@joeyh.name> | 2017-09-07 13:48:44 -0400 |
commit | d910a94df7d6f5c87897c248586cb65523457f99 (patch) | |
tree | 692446ec624e63ac8fa4aec72f0b5ee8e5d13723 /Remote/Glacier.hs | |
parent | 7bd9a9cad8b413f4b09f9ab11a9d6d7ce72b8336 (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/Glacier.hs')
-rw-r--r-- | Remote/Glacier.hs | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/Remote/Glacier.hs b/Remote/Glacier.hs index 67e1b8b2e..40a92c700 100644 --- a/Remote/Glacier.hs +++ b/Remote/Glacier.hs @@ -30,12 +30,13 @@ type Vault = String type Archive = FilePath remote :: RemoteType -remote = RemoteType { - typename = "glacier", - enumerate = const (findSpecialRemotes "glacier"), - generate = gen, - setup = glacierSetup -} +remote = RemoteType + { typename = "glacier" + , enumerate = const (findSpecialRemotes "glacier") + , generate = gen + , setup = glacierSetup + , exportSupported = exportUnsupported + } gen :: Git.Repo -> UUID -> RemoteConfig -> RemoteGitConfig -> Annex (Maybe Remote) gen r u c gc = new <$> remoteCost gc veryExpensiveRemoteCost |