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.
This commit is contained in:
parent
4abe03635e
commit
8a796cfa64
2 changed files with 16 additions and 12 deletions
|
@ -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]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue