// Collect the updates that are not ok
while (resit.hasNext()) {
PushResult pushResult = resit.next();
pushResults.add(pushResult);
for (RemoteRefUpdate refUpdate : pushResult.getRemoteUpdates()) {
Status status = refUpdate.getStatus();
if (status == Status.OK || status == Status.UP_TO_DATE) {
acceptedUpdates.add(refUpdate);
} else {
rejectedUpdates.add(refUpdate);
}