From 1340b9f493360069c0af67a49beca818d60afbbd Mon Sep 17 00:00:00 2001 From: Joey Hess Date: Wed, 6 Mar 2013 17:43:55 -0400 Subject: [PATCH] avoid too early scanning for xmppremotes --- Assistant/Sync.hs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Assistant/Sync.hs b/Assistant/Sync.hs index 901694920e..835faa08c0 100644 --- a/Assistant/Sync.hs +++ b/Assistant/Sync.hs @@ -54,6 +54,7 @@ reconnectRemotes notifypushes rs = void $ do where gitremotes = filter (notspecialremote . Remote.repo) rs (xmppremotes, normalremotes) = partition isXMPPRemote gitremotes + nonxmppremotes = snd $ partition isXMPPRemote rs notspecialremote r | Git.repoIsUrl r = True | Git.repoIsLocal r = True @@ -70,7 +71,7 @@ reconnectRemotes notifypushes rs = void $ do go = do (ok, diverged) <- sync =<< liftAnnex (inRepo Git.Branch.current) - addScanRemotes diverged rs + addScanRemotes diverged nonxmppremotes return ok {- Updates the local sync branch, then pushes it to all remotes, in