bug squashed

This commit is contained in:
Peter Cottle 2013-01-12 13:01:39 -08:00
parent 4db83ba808
commit e844b5b25f
3 changed files with 18 additions and 9 deletions

View file

@ -890,8 +890,12 @@ GitEngine.prototype.dateSortFunc = function(cA, cB) {
var dateA = new Date(cA.get('createTime'));
var dateB = new Date(cB.get('createTime'));
if (dateA - dateB === 0) {
console.warn('WUT it is equal');
console.log(cA, cB);
// hmmmmm this still needs fixing. we need to know basically just WHEN a commit was created, but since
// we strip off the date creation field, when loading a tree from string this fails :-/
// there's actually no way to determine it...
//console.warn('WUT it is equal');
//console.log(cA, cB);
return GitEngine.prototype.idSortFunc(cA, cB);
}
return dateA - dateB;
};