lib/git/lighttp/treeish.rb in git-lighttp-0.3.1 vs lib/git/lighttp/treeish.rb in git-lighttp-0.3.2

- old
+ new

@@ -8,10 +8,10 @@ before do authenticate! if settings.authenticate end - get %r{/(.*?)/(.*?/{0,1}.*)$} do |name, path| + get %r{/(.*?)/(.*?/{0,1}.*)} do |name, path| content_type :json path = path.split('/') ref = path.shift tree = repository.tree(ref, path.join('/')) tree.to_json(:max_nesting => tree.size*6)