Skip to content

Commit

Permalink
FORGE-1873: Fixed switch branch usage
Browse files Browse the repository at this point in the history
  • Loading branch information
gastaldi committed Jun 6, 2014
1 parent 69e2b1b commit 0b6c132
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@

import javax.inject.Inject;

import org.eclipse.jgit.api.CreateBranchCommand.SetupUpstreamMode;
import org.eclipse.jgit.api.Git;
import org.eclipse.jgit.api.errors.GitAPIException;
import org.jboss.forge.addon.dependencies.Coordinate;
Expand Down Expand Up @@ -161,7 +160,7 @@ private void cloneTo(DirectoryResource projectRoot) throws GitAPIException
// Checkout branch/tag
if (branch.hasValue())
{
gitUtils.checkout(git, branch.getValue(), true, SetupUpstreamMode.NOTRACK, false);
gitUtils.switchBranch(git, branch.getValue());
}
}
finally
Expand Down

0 comments on commit 0b6c132

Please sign in to comment.