diff options
author | Joey Hess <joey@kitenet.net> | 2011-12-31 01:42:42 -0400 |
---|---|---|
committer | Joey Hess <joey@kitenet.net> | 2011-12-31 01:42:42 -0400 |
commit | 015a497914d0614afff705d5f9acd79d956740ec (patch) | |
tree | 8d1d4199a0b5aba1264fda1285d7433335e6f1d5 /Command/Sync.hs | |
parent | e7d3e546c298add0a39ec1a979d9b1574b9b9b76 (diff) |
avoid syncing remotes configured annex-ignore, unless explicitly specified
Diffstat (limited to 'Command/Sync.hs')
-rw-r--r-- | Command/Sync.hs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Command/Sync.hs b/Command/Sync.hs index 81b77e5cc..d8eb0fc39 100644 --- a/Command/Sync.hs +++ b/Command/Sync.hs @@ -54,12 +54,12 @@ syncRemotes rs = do else wanted where wanted - | null rs = filterM hasurl =<< Remote.remoteList + | null rs = filterM hasurl =<< Remote.enabledRemoteList | otherwise = listed listed = mapM Remote.byName rs hasurl r = not . null <$> geturl r geturl r = fromRepo $ Git.Config.get ("remote." ++ Remote.name r ++ ".url") "" - pickfast = (++) <$> listed <*> (fastest <$> Remote.remoteList) + pickfast = (++) <$> listed <*> (fastest <$> Remote.enabledRemoteList) fastest = fromMaybe [] . headMaybe . map snd . sort . M.toList . costmap costmap = M.fromListWith (++) . map costpair |