Special remotes configured with autoenable=true will be automatically enabled when git-annex init is run.

This commit is contained in:
Joey Hess 2015-09-14 14:49:48 -04:00
parent 3f47d1b351
commit 9cfb96c53d
12 changed files with 148 additions and 64 deletions

View file

@ -10,6 +10,7 @@ module Command.Init where
import Common.Annex
import Command
import Annex.Init
import qualified Annex.SpecialRemote
cmd :: Command
cmd = dontCheck repoExists $
@ -29,4 +30,5 @@ start ws = do
perform :: String -> CommandPerform
perform description = do
initialize $ if null description then Nothing else Just description
Annex.SpecialRemote.autoEnable
next $ return True