git4idea: IDEADEV-40642: In push active branches dialog added possiblity to push if there is no roots with errors

This commit is contained in:
Constantine Plotnikov
2009-10-06 17:36:12 +04:00
parent e8cf2dbf0d
commit 869f5d0a6c
@@ -69,7 +69,7 @@ public class GitPushActiveBranchesDialog extends DialogWrapper {
setOKActionEnabled(false);
break;
}
if (r.remoteCommits != 0) {
if (r.remoteCommits != 0 && r.commits.size() != 0) {
setErrorText(GitBundle.getString("push.active.error.behind"));
setOKActionEnabled(false);
break;