From b944a23790297affccb5989eeaee39d8c11294c3 Mon Sep 17 00:00:00 2001 From: Peter Cottle Date: Sat, 13 Oct 2012 16:01:09 -0700 Subject: [PATCH] stuck on weird load issues --- src/git.js | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/git.js b/src/git.js index fa495976..fdf6369c 100644 --- a/src/git.js +++ b/src/git.js @@ -109,6 +109,14 @@ GitEngine.prototype.instantiateFromTree = function(tree) { }; GitEngine.prototype.reloadGraphics = function() { + var rootCommit = null; + this.commitCollection.each(function(commit) { + if (commit.get('id') == 'C0') { + rootCommit = commit; + } + }); + gitVisuals.rootCommit = rootCommit; + // this just basically makes the HEAD branch. the head branch really should have been // a member of a collection and not this annoying edge case stuff... console.log('calling when git engine ready');