diff options
Diffstat (limited to 'Annex')
-rw-r--r-- | Annex/SpecialRemote.hs | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/Annex/SpecialRemote.hs b/Annex/SpecialRemote.hs index 3e2b1da0a..f53a2ca63 100644 --- a/Annex/SpecialRemote.hs +++ b/Annex/SpecialRemote.hs @@ -10,6 +10,7 @@ module Annex.SpecialRemote where import Annex.Common import Remote (remoteTypes, remoteMap) import Types.Remote (RemoteConfig, RemoteConfigKey, SetupStage(..), typename, setup) +import Types.GitConfig import Logs.Remote import Logs.Trust import qualified Git.Config @@ -79,7 +80,8 @@ autoEnable = do case (M.lookup nameKey c, findType c) of (Just name, Right t) -> whenM (canenable u) $ do showSideAction $ "Auto enabling special remote " ++ name - res <- tryNonAsync $ setup t Enable (Just u) Nothing c def + dummycfg <- liftIO dummyRemoteGitConfig + res <- tryNonAsync $ setup t Enable (Just u) Nothing c dummycfg case res of Left e -> warning (show e) Right _ -> return () |