Resolves #385 -- validate no amend options

This commit is contained in:
Peter Cottle 2016-07-31 16:06:05 -07:00
parent 422e61c93c
commit 02a69e85c0

View file

@ -153,8 +153,13 @@ var commandConfig = {
msg = args[0];
}
if (commandOptions['--amend']) {
args = commandOptions['--amend'];
command.validateArgBounds(args, 0, 0, '--amend');
}
var newCommit = engine.commit({
isAmend: commandOptions['--amend']
isAmend: !!commandOptions['--amend']
});
if (msg) {
msg = msg
@ -267,7 +272,7 @@ var commandConfig = {
engine.pull({
source: source,
destination: destination,
isRebase: commandOptions['--rebase']
isRebase: !!commandOptions['--rebase']
});
}
},