lib/webgit/app.rb in webgit-0.1.0 vs lib/webgit/app.rb in webgit-0.1.1

- old
+ new

@@ -54,9 +54,12 @@ private def show_object(obj, options = {}) if obj.is_a? Rugged::Tree @tree = obj erb options[:tree_erb] || :tree + elsif obj.is_a? Rugged::Commit + @tree = obj.tree + erb options[:tree_erb] || :tree elsif obj.is_a? Rugged::Blob @blob = obj @format = options[:name].split('.')[-1] erb :blob else