mirror of
https://github.com/pcottle/learnGitBranching.git
synced 2025-06-28 17:00:04 +02:00
Resolves #766 -- use same method post command validation so o/main works
This commit is contained in:
parent
2802ce3b59
commit
7be578699d
3 changed files with 3 additions and 3 deletions
|
@ -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;
|
||||
}
|
||||
|
|
|
@ -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) {
|
||||
|
|
|
@ -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];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue