Commit 8208090f authored by Maxime Lefrançois's avatar Maxime Lefrançois
Browse files

checkout current branch after job done

parent deaf0f1c
......@@ -309,7 +309,7 @@ public class Main {
try(Git git = Git.open(repository.getDirectory())) {
String currentBranch = repository.getCurrentBranch();
if(currentBranch != null) {
git.checkout().setStartPoint(currentBranch).call();
git.checkout().setName(currentBranch).call();
}
} catch (IOException | GitAPIException ex) {
LOG.warn("Error while reseting repository " + repository, ex);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment