avoid sending xmpp push notifications when not pushing to any remotes
This commit is contained in:
parent
957e742dfc
commit
ec186d6369
1 changed files with 1 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue