mirror of
https://github.com/pcottle/learnGitBranching.git
synced 2025-06-27 08:28:50 +02:00
ammend on root node fixed
This commit is contained in:
parent
7ab6f26bef
commit
ba07683591
3 changed files with 20 additions and 3 deletions
|
@ -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--;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue