diff options
author | Joey Hess <joeyh@joeyh.name> | 2017-09-04 12:40:33 -0400 |
---|---|---|
committer | Joey Hess <joeyh@joeyh.name> | 2017-09-04 13:09:38 -0400 |
commit | 5ce97e8c736c121d53af23d7036264868a461db8 (patch) | |
tree | 1c8b180a503996be3b0ea63fc667bc564f2c3fcc /Annex/SpecialRemote.hs | |
parent | 2aea8192e1769c4acfbc130ba4d788abd5ee4539 (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 'Annex/SpecialRemote.hs')
-rw-r--r-- | Annex/SpecialRemote.hs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Annex/SpecialRemote.hs b/Annex/SpecialRemote.hs index f53a2ca63..c215208db 100644 --- a/Annex/SpecialRemote.hs +++ b/Annex/SpecialRemote.hs @@ -81,7 +81,7 @@ autoEnable = do (Just name, Right t) -> whenM (canenable u) $ do showSideAction $ "Auto enabling special remote " ++ name dummycfg <- liftIO dummyRemoteGitConfig - res <- tryNonAsync $ setup t Enable (Just u) Nothing c dummycfg + res <- tryNonAsync $ setup t (Enable c) (Just u) Nothing c dummycfg case res of Left e -> warning (show e) Right _ -> return () |