     commitNode.firstElementChild.id = "sha-#{commit.sha()}"
     @historyNode.appendChild(commitNode)
 
-  renderHistory: ->
-    new Promise (resolve, reject) =>
-      @history.walkHistory (commit) =>
-        promise = @renderCommit(commit)
-        resolve(commit)
-        promise
-    .then (firstCommit) =>
-      @renderDiff(firstCommit.sha())
-
-  renderDiff: (sha) ->
+  renderCommitDetail: (sha) ->
     @diffsNode.innerHTML = ''
 
     for commitNode in @querySelectorAll('.commit')

  <div class="diffs"></div>
"""

CommitTemplateString = """
  <div class="commit">
    <div class="sha"></div>
    <div class="author"></div>

        commitNode = commitNode.parentNode
      if commitNode?
        sha = commitNode.querySelector('.sha').textContent
        @renderCommitDetail(sha)

    @commitTemplate = TemplateHelper.addTemplate(this, CommitSummaryTemplateString)

    @renderHistory().catch (error) ->
      console.error error.message, error
