Resolves #766 -- use same method post command validation so o/main works

This commit is contained in:
Peter Cottle 2020-12-29 08:52:42 -07:00
parent 2802ce3b59
commit 7be578699d
3 changed files with 3 additions and 3 deletions

View file

@ -447,8 +447,8 @@ var commandConfig = {
assertIsRemoteBranch(engine, remoteBranch);
assertIsBranch(engine, branch);
engine.setLocalToTrackRemote(
engine.refs[branch],
engine.refs[remoteBranch]
engine.resolveID(branch),
engine.resolveID(remoteBranch)
);
return;
}

View file

@ -472,6 +472,7 @@ GitEngine.prototype.makeBranchOnOriginAndTrack = function(branchName, target) {
};
GitEngine.prototype.setLocalToTrackRemote = function(localBranch, remoteBranch) {
debugger;
localBranch.setRemoteTrackingBranchID(remoteBranch.get('id'));
if (!this.command) {

View file

@ -269,7 +269,6 @@ var Command = Backbone.Model.extend({
parseAll: function() {
var rawInput = this.get('rawStr');
debugger;
const aliasMap = LevelStore.getAliasMap();
for (var i = 0; i<Object.keys(aliasMap).length; i++) {
var alias = Object.keys(aliasMap)[i];