refreshing prod since glone si broken there

This commit is contained in:
Peter Cottle 2013-09-09 11:42:57 -07:00
parent 3d40125e75
commit 6291baf665
7 changed files with 27 additions and 4 deletions

View file

@ -349,7 +349,6 @@ GitEngine.prototype.makeOrigin = function(treeString) {
ORIGIN_PREFIX + branchName,
this.getCommitFromRef(originTarget)
);
debugger;
this.setLocalToTrackRemote(this.refs[branchJSON.id], originBranch);
}, this);

View file

@ -133,6 +133,13 @@ var Command = Backbone.Model.extend({
}
},
twoArgsImpliedOrigin: function(args) {
this.validateArgBounds(args, 0, 2);
if (args.length < 2) {
args.unshift('origin');
}
},
// this is a little utility class to help arg validation that happens over and over again
validateArgBounds: function(args, lower, upper, option) {
var what = (option === undefined) ?