Changed checkout -B to set the branch to point at the specified commit rather than always using HEAD

This commit is contained in:
Patrick Tully 2014-07-20 12:32:24 -04:00
parent dd58afde76
commit 55ac6da589

View file

@ -645,7 +645,7 @@ var commandConfig = {
}
if (commandOptions['-B']) {
args = commandOptions['-B'];
args = commandOptions['-B'].concat(generalArgs);
command.twoArgsImpliedHead(args, '-B');
engine.forceBranch(args[0], args[1]);