mirror of
https://github.com/pcottle/learnGitBranching.git
synced 2025-06-25 15:38:33 +02:00
bug squashed
This commit is contained in:
parent
4db83ba808
commit
e844b5b25f
3 changed files with 18 additions and 9 deletions
|
@ -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;
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue