color animation

This commit is contained in:
Peter Cottle 2013-09-01 12:24:20 -07:00
parent 9ee683a29f
commit 3ff56c002c
2 changed files with 18 additions and 4 deletions

View file

@ -901,7 +901,6 @@ GitEngine.prototype.push = function(options) {
GitEngine.prototype.fetch = function(options) {
options = options || {};
var localBranch = this.refs['o/master'];
// fetch all local branches
var allRemotes = this.branchCollection.filter(function(branch) {
@ -937,7 +936,6 @@ GitEngine.prototype.fetch = function(options) {
// command simply commits), but we are doing it anyways for correctness
commitsToMake = this.getUniqueObjects(commitsToMake);
commitsToMake = this.descendSortDepth(commitsToMake);
console.log('ocmmits', commitsToMake);
if (commitsToMake.length === 0) {
this.command.addWarning(intl.str(
@ -972,7 +970,13 @@ GitEngine.prototype.fetch = function(options) {
var deferred = Q.defer();
var chain = deferred.promise;
var originBranchSet = this.origin.getUpstreamBranchSet();
_.each(commitsToMake, function(commitJSON) {
// technically we could grab the wrong one here
// but this works for now
var originBranch = originBranchSet[commitJSON.id][0].obj;
var localBranch = this.refs[originBranch.getPrefixedID()];
chain = chain.then(_.bind(function() {
return this.animationFactory.playHighlightPromiseAnimation(
this.origin.refs[commitJSON.id],