From ec186d6369075166c453bcfeaf7c967415a3980d Mon Sep 17 00:00:00 2001 From: Joey Hess Date: Sat, 10 Nov 2012 14:52:25 -0400 Subject: [PATCH] avoid sending xmpp push notifications when not pushing to any remotes --- Assistant/Sync.hs | 1 + 1 file changed, 1 insertion(+) diff --git a/Assistant/Sync.hs b/Assistant/Sync.hs index 8d7ead31d4..8815f40c8b 100644 --- a/Assistant/Sync.hs +++ b/Assistant/Sync.hs @@ -100,6 +100,7 @@ pushToRemotes now notifypushes remotes = do return ret where go _ Nothing _ _ _ = return True -- no branch, so nothing to do + go _ _ _ _ [] = return True -- no remotes, so nothing to do go shouldretry (Just branch) g u rs = do debug ["pushing to", show rs] liftIO $ Command.Sync.updateBranch (Command.Sync.syncBranch branch) g