mirror of
https://github.com/pcottle/learnGitBranching.git
synced 2025-07-11 15:14:27 +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) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue