summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Joey Hess <joeyh@joeyh.name>2015-09-14 15:28:14 -0400
committerGravatar Joey Hess <joeyh@joeyh.name>2015-09-14 15:28:14 -0400
commit96aaf2c18b8dec8fc23c42afa33722375f6e9029 (patch)
tree94b2f2df4556c10073975df46b927bae269dcbac
parent6560f1f90a9aadecec56bb714c31cb0f52b5506d (diff)
avoid autoenable of dead special remotes
-rw-r--r--Annex/SpecialRemote.hs2
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