           (reify TreeSelectionListener
             (valueChanged [this e]
               (->> (some-> e .getPath .getLastPathComponent .getUserObject)
-                   (update-content! sidebar content git)))))
+                   (update-content! sidebar content repo)))))
         (.setSelectionRow (or selected-row 0))))))
 
 (def ^:dynamic *widgets* [:pull :push :close])

          offset-atom (atom 0)
          content (create-content repo)
          sidebar (doto (create-sidebar)
                    (update-sidebar! content offset-atom f))
          paging-panel (doto (s/horizontal-panel
                               :items (create-paging-buttons offset-atom))
                         (update-paging-buttons! offset-atom))

            forms]]))

(defn create-html
  [^FileRepository repo ^RevCommit commit]
  (let [out (ByteArrayOutputStream.)
        df (doto (DiffFormatter. out)
             (.setRepository repo))
        [old-tree new-tree] (diff-trees repo commit)
