get rid of local branches that trick this since not needed

This commit is contained in:
Peter Cottle 2013-10-09 21:40:44 -07:00
parent b2321dd265
commit 748eddbd86
3 changed files with 18 additions and 36 deletions

View file

@ -376,7 +376,6 @@ GitEngine.prototype.makeOrigin = function(treeString) {
};
GitEngine.prototype.setLocalToTrackRemote = function(localBranch, remoteBranch) {
remoteBranch.addLocalBranchThatTracksThis(localBranch.get('id'));
localBranch.setRemoteTrackingBranchID(remoteBranch.get('id'));
if (!this.command) {
@ -2439,7 +2438,6 @@ var Branch = Ref.extend({
defaults: {
visBranch: null,
remoteTrackingBranchID: null,
localBranchesThatTrackThis: null,
remote: false
},
@ -2466,20 +2464,6 @@ var Branch = Ref.extend({
return this.get('remoteTrackingBranchID');
},
addLocalBranchThatTracksThis: function(localBranch) {
this.setLocalBranchesThatTrackThis(
this.getLocalBranchesThatTrackThis().concat([localBranch])
);
},
setLocalBranchesThatTrackThis: function(branches) {
this.set('localBranchesThatTrackThis', branches);
},
getLocalBranchesThatTrackThis: function() {
return this.get('localBranchesThatTrackThis') || [];
},
getPrefixedID: function() {
if (this.getIsRemote()) {
throw new Error('im already remote');