Fixes Issue #4

This commit is contained in:
Peter Cottle 2013-02-16 13:15:38 -08:00
parent 1ad1ba24d2
commit 81c1d2402a
7 changed files with 24 additions and 6 deletions

View file

@ -6569,7 +6569,7 @@ var init = function() {
"help; levels"
].join(''));
});
} else {
} else if (!(/\?NODEMO/.test(window.location.href))) {
sandbox.mainVis.customEvents.on('gitEngineReady', function() {
eventBaton.trigger(
'commandSubmitted',
@ -8726,6 +8726,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');
@ -18626,7 +18632,7 @@ var init = function() {
"help; levels"
].join(''));
});
} else {
} else if (!(/\?NODEMO/.test(window.location.href))) {
sandbox.mainVis.customEvents.on('gitEngineReady', function() {
eventBaton.trigger(
'commandSubmitted',
@ -20364,6 +20370,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');