#30 - Check out of a branch for a project now also pulls latest changes.
This commit is contained in:
@@ -454,6 +454,14 @@ public class GitOperations {
|
|||||||
} catch (RefNotFoundException o_O) {
|
} catch (RefNotFoundException o_O) {
|
||||||
// TODO:
|
// 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();
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user