GitUpdateResult () { LOG.info("doUpdate "); String remoteBranch = getRemoteBranchToMerge(); List<String> params = Collections.singletonList(remoteBranch); GitUpdateResult result = myRebaser.rebase(myRoot, params); if (result == GitUpdateResult.CANCEL) { myRebaser.abortRebase(myRoot); } return result; }