name);
actMonitor.beginTask(taskName, 1);
Git git = new Git(repository);
try {
if (ref != null) {
SetupUpstreamMode mode;
if (upstreamConfig == UpstreamConfig.NONE)
mode = SetupUpstreamMode.NOTRACK;
else
mode = SetupUpstreamMode.SET_UPSTREAM;
git.branchCreate().setName(name).setStartPoint(