ammend on root node fixed

This commit is contained in:
Peter Cottle 2012-10-12 13:44:35 -07:00
parent 7ab6f26bef
commit ba07683591
3 changed files with 20 additions and 3 deletions

View file

@ -418,7 +418,7 @@ GitEngine.prototype.numBackFrom = function(commit, numBack) {
return commit;
}
var pQueue = [].concat(commit.get('parents'));
var pQueue = [].concat(commit.get('parents') || []);
pQueue.sort(this.idSortFunc);
numBack--;