summaryrefslogtreecommitdiff
path: root/Assistant/Threads/NetWatcher.hs
diff options
context:
space:
mode:
authorGravatar Joey Hess <joey@kitenet.net>2012-09-04 15:54:30 -0400
committerGravatar Joey Hess <joey@kitenet.net>2012-09-04 15:56:37 -0400
commit8a796cfa64264f615e3054ccbd4922bb44718a02 (patch)
tree8bed05474a4f9d36ed23535ee0bb4c2b86d4b9c5 /Assistant/Threads/NetWatcher.hs
parent4abe03635e5fcfcbb843d09f44d9a3f25e319e91 (diff)
improve syncing support for special remotes
Avoid trying to git push/pull to special remotes, but still do transfer scans of them, after git pull from any other remotes, so we know about any values that have been placed on them.
Diffstat (limited to 'Assistant/Threads/NetWatcher.hs')
-rw-r--r--Assistant/Threads/NetWatcher.hs7
1 files changed, 3 insertions, 4 deletions
diff --git a/Assistant/Threads/NetWatcher.hs b/Assistant/Threads/NetWatcher.hs
index 117ab7a20..6f6bd40da 100644
--- a/Assistant/Threads/NetWatcher.hs
+++ b/Assistant/Threads/NetWatcher.hs
@@ -121,10 +121,9 @@ listenWicdConnections client callback =
#endif
handleConnection :: ThreadState -> DaemonStatusHandle -> ScanRemoteMap -> IO ()
-handleConnection st dstatus scanremotes = do
- reconnectRemotes thisThread st dstatus scanremotes =<<
- filter (Git.repoIsUrl . Remote.repo)
- <$> networkRemotes st
+handleConnection st dstatus scanremotes =
+ reconnectRemotes thisThread st dstatus scanremotes
+ =<< networkRemotes st
{- Finds network remotes. -}
networkRemotes :: ThreadState -> IO [Remote]