avoid showing alert when there are no remotes to push to
This commit is contained in:
parent
22d7447ced
commit
3695cab949
1 changed files with 3 additions and 2 deletions
|
@ -54,8 +54,9 @@ pushThread st dstatus commitchan pushmap = do
|
||||||
if shouldPush now commits
|
if shouldPush now commits
|
||||||
then do
|
then do
|
||||||
remotes <- knownRemotes <$> getDaemonStatus dstatus
|
remotes <- knownRemotes <$> getDaemonStatus dstatus
|
||||||
void $ alertWhile dstatus (pushAlert remotes) $
|
unless (null remotes) $
|
||||||
pushToRemotes thisThread now st (Just pushmap) remotes
|
void $ alertWhile dstatus (pushAlert remotes) $
|
||||||
|
pushToRemotes thisThread now st (Just pushmap) remotes
|
||||||
else do
|
else do
|
||||||
debug thisThread
|
debug thisThread
|
||||||
[ "delaying push of"
|
[ "delaying push of"
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue