boolean () { if (myCustomMode != null || myRebaseSpec.getOngoingRebase() != null) { return true; } if (myRebaseSpec.getParams() == null) { LOG.error("Shouldn't happen. Spec: " + myRebaseSpec); return true; } String upstream = myRebaseSpec.getParams().getUpstream(); for (GitRepository repository : myRebaseSpec.getAllRepositories()) { if (repository.getCurrentBranchName() == null) { LOG.error("No current branch in " + repository); return true; } String rebasingBranch = notNull(myRebaseSpec.getParams().getBranch(), repository.getCurrentBranchName()); if (isRebasingPublishedCommit(repository, upstream, rebasingBranch)) { return askIfShouldRebasePublishedCommit(); } } return true; }