avoid too early scanning for xmppremotes
This commit is contained in:
parent
52eb62be26
commit
1340b9f493
1 changed files with 2 additions and 1 deletions
|
@ -54,6 +54,7 @@ reconnectRemotes notifypushes rs = void $ do
|
||||||
where
|
where
|
||||||
gitremotes = filter (notspecialremote . Remote.repo) rs
|
gitremotes = filter (notspecialremote . Remote.repo) rs
|
||||||
(xmppremotes, normalremotes) = partition isXMPPRemote gitremotes
|
(xmppremotes, normalremotes) = partition isXMPPRemote gitremotes
|
||||||
|
nonxmppremotes = snd $ partition isXMPPRemote rs
|
||||||
notspecialremote r
|
notspecialremote r
|
||||||
| Git.repoIsUrl r = True
|
| Git.repoIsUrl r = True
|
||||||
| Git.repoIsLocal r = True
|
| Git.repoIsLocal r = True
|
||||||
|
@ -70,7 +71,7 @@ reconnectRemotes notifypushes rs = void $ do
|
||||||
go = do
|
go = do
|
||||||
(ok, diverged) <- sync
|
(ok, diverged) <- sync
|
||||||
=<< liftAnnex (inRepo Git.Branch.current)
|
=<< liftAnnex (inRepo Git.Branch.current)
|
||||||
addScanRemotes diverged rs
|
addScanRemotes diverged nonxmppremotes
|
||||||
return ok
|
return ok
|
||||||
|
|
||||||
{- Updates the local sync branch, then pushes it to all remotes, in
|
{- Updates the local sync branch, then pushes it to all remotes, in
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue