Fixes Issue #43

This commit is contained in:
Peter Cottle 2013-02-20 20:03:27 -08:00
parent a2e89f592d
commit 9b59e47572
6 changed files with 15 additions and 3 deletions

View file

@ -79,6 +79,10 @@ TreeCompare.prototype.compareBranchesWithinTreesHashAgnostic = function(treeA, t
if (!branchA || !branchB) {
return false;
}
// dont mess up the rest of comparison
branchA = _.clone(branchA);
branchB = _.clone(branchB);
branchA.target = this.getBaseRef(branchA.target);
branchB.target = this.getBaseRef(branchB.target);