#30 - Check out of a branch for a project now also pulls latest changes.

This commit is contained in:
Oliver Gierke
2016-07-28 09:17:55 +02:00
parent 722d760253
commit bb6ae0a2ad

View File

@@ -454,6 +454,14 @@ public class GitOperations {
} catch (RefNotFoundException o_O) {
// TODO:
}
// Pull latest changes to make sure the branch is up to date
logger.log(project, "git pull origin %s", branch);
git.pull()//
.setRemote("origin")//
.setRemoteBranchName(branch.toString())//
.call();
});
}