Merge pull request #192 from ptsoccer/master

Fixed couple of issues where the target branch/ref was being ignored
This commit is contained in:
Peter Cottle 2014-07-22 17:27:36 +08:00
commit b9f4f6e9a1

View file

@ -579,7 +579,7 @@ var commandConfig = {
var generalArgs = command.getGeneralArgs();
if (commandOptions['-i']) {
var args = commandOptions['-i'];
var args = commandOptions['-i'].concat(generalArgs);
command.twoArgsImpliedHead(args, ' -i');
engine.rebaseInteractive(
args[0],
@ -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]);