mirror of
https://github.com/pcottle/learnGitBranching.git
synced 2025-06-25 15:38:33 +02:00
Fixes Issue #4
This commit is contained in:
parent
1ad1ba24d2
commit
81c1d2402a
7 changed files with 24 additions and 6 deletions
|
@ -1208,6 +1208,12 @@ GitEngine.prototype.merge = function(targetSource, currentLocation) {
|
|||
GitEngine.prototype.checkoutStarter = function() {
|
||||
var args = null;
|
||||
if (this.commandOptions['-b']) {
|
||||
if (this.generalArgs.length) {
|
||||
throw new GitError({
|
||||
msg: "I don't expect general args before -b!"
|
||||
});
|
||||
}
|
||||
|
||||
// the user is really trying to just make a branch and then switch to it. so first:
|
||||
args = this.commandOptions['-b'];
|
||||
this.twoArgsImpliedHead(args, '-b');
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue