fix inverted logic in filtering failed remotes

This commit is contained in:
Joey Hess 2013-03-27 14:19:10 -04:00
parent 5c943b051c
commit f8707b6d3b

View file

@ -165,7 +165,7 @@ syncAction rs a
| otherwise = do
i <- addAlert $ syncAlert nonxmppremotes
failed <- a rs
let failed' = filter (Git.repoIsLocalUnknown . Remote.repo) failed
let failed' = filter (not . Git.repoIsLocalUnknown . Remote.repo) failed
let succeeded = filter (`notElem` failed) nonxmppremotes
updateAlertMap $ mergeAlert i $
syncResultAlert succeeded failed'