diff options
author | 2015-09-14 15:28:14 -0400 | |
---|---|---|
committer | 2015-09-14 15:28:14 -0400 | |
commit | 96aaf2c18b8dec8fc23c42afa33722375f6e9029 (patch) | |
tree | 94b2f2df4556c10073975df46b927bae269dcbac | |
parent | 6560f1f90a9aadecec56bb714c31cb0f52b5506d (diff) |
avoid autoenable of dead special remotes
-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 bcff1d930..4a07ebbc7 100644 --- a/Annex/SpecialRemote.hs +++ b/Annex/SpecialRemote.hs @@ -73,7 +73,7 @@ autoEnable = do remotemap <- M.filter wanted <$> readRemoteLog forM_ (M.toList remotemap) $ \(u, c) -> case (M.lookup nameKey c, findType c) of - (Just name, Right t) -> do + (Just name, Right t) -> unlessM ((== DeadTrusted) <$> lookupTrust u) $ do showSideAction $ "Auto enabling special remote " ++ name res <- tryNonAsync $ setup t (Just u) Nothing c case res of |