Source:
void doPush(IProgressMonitor monitor) { try { int timeout = Activator.getDefault().getPreferenceStore() .getInt(UIPreferences.REMOTE_CONNECTION_TIMEOUT); URIish uri = new URIish(uriCombo.getText()); Ref currentHead = repository.getRef(Constants.HEAD); RemoteRefUpdate update = new RemoteRefUpdate(repository, currentHead, prefixCombo.getItem(prefixCombo .getSelectionIndex()) + branchText.getText(), false, null, null); PushOperationSpecification spec = new PushOperationSpecification(); spec.addURIRefUpdates(uri, Arrays.asList(update)); PushOperationUI op = new PushOperationUI(repository, spec, timeout, false); op.setCredentialsProvider(new EGitCredentialsProvider()); StringBuilder recivePack = new StringBuilder("git receive-pack"); String[] reviewers = reviewersText.getText().split( new Character(REVIEWERS_SEPARATOR).toString()); for (String reviewerRaw : reviewers) { String reviewer = reviewerRaw.trim(); if (reviewer.matches(String.format(".*%s.*%s.*", REVIEWERS_START_BRACKET, REVIEWERS_STOP_BRACKET))) { reviewer = reviewer.substring( reviewer.indexOf(REVIEWERS_START_BRACKET) + 1, reviewer.lastIndexOf(REVIEWERS_STOP_BRACKET)); } if (reviewer.length() > 0) { recivePack.append(String.format( " --reviewer='%s'", reviewer)); } } op.setReceivePack(recivePack.toString()); PushOperationResult result = op.execute(monitor); PushResultDialog dlg = new PushResultDialog(getShell(), repository, result, op.getDestinationString()); dlg.showConfigureButton(false); dlg.open(); storeLastUsedUri(uriCombo.getText()); storeLastUsedBranch(branchText.getText()); } catch (CoreException e) { Activator.handleError(e.getMessage(), e, true); } catch (URISyntaxException e) { Activator.handleError(e.getMessage(), e, true); } catch (IOException e) { Activator.handleError(e.getMessage(), e, true); } }

Target:
void doPush(IProgressMonitor monitor) { try { int timeout = Activator.getDefault().getPreferenceStore() .getInt(UIPreferences.REMOTE_CONNECTION_TIMEOUT); URIish uri = new URIish(uriCombo.getText()); Ref currentHead = repository.getRef(Constants.HEAD); RemoteRefUpdate update = new RemoteRefUpdate(repository, currentHead, prefixCombo.getItem(prefixCombo .getSelectionIndex()) + branchText.getText(), false, null, null); PushOperationSpecification spec = new PushOperationSpecification(); spec.addURIRefUpdates(uri, Arrays.asList(update)); PushOperationUI op = new PushOperationUI(repository, spec, timeout, false); op.setCredentialsProvider(new EGitCredentialsProvider()); StringBuilder receivePack = new StringBuilder(); String[] reviewers = reviewersText.getText().split( new Character(REVIEWERS_SEPARATOR).toString()); for (String reviewerRaw : reviewers) { String reviewer = reviewerRaw.trim(); if (reviewer.matches(String.format(".*%s.*%s.*", REVIEWERS_START_BRACKET, REVIEWERS_STOP_BRACKET))) { reviewer = reviewer.substring( reviewer.indexOf(REVIEWERS_START_BRACKET) + 1, reviewer.lastIndexOf(REVIEWERS_STOP_BRACKET)); } if (reviewer.length() > 0) { receivePack.append(String.format( " --reviewer='%s'", reviewer)); } } if (receivePack.length() > 0) { op.setReceivePack("git receive-pack" + receivePack.toString()); } PushOperationResult result = op.execute(monitor); PushResultDialog dlg = new PushResultDialog(getShell(), repository, result, op.getDestinationString()); dlg.showConfigureButton(false); dlg.open(); storeLastUsedUri(uriCombo.getText()); storeLastUsedBranch(branchText.getText()); } catch (CoreException e) { Activator.handleError(e.getMessage(), e, true); } catch (URISyntaxException e) { Activator.handleError(e.getMessage(), e, true); } catch (IOException e) { Activator.handleError(e.getMessage(), e, true); } }