versionCache.invalidateAll();
notificationRequired = true;
}
if (context.isRequirePush()) {
PushPolicyResult pushResult = doPushInternal(context, getCredentialsProvider());
if (!pushResult.getRejectedUpdates().isEmpty()) {
Exception gitex = pushResult.getLastException();
throw new IllegalStateException("Push rejected: " + pushResult.getRejectedUpdates(), gitex);
}
}
return result;
} catch (Exception e) {