lib/git/lighttp/treeish.rb in git-lighttp-0.3.0 vs lib/git/lighttp/treeish.rb in git-lighttp-0.3.1
- old
+ new
@@ -10,12 +10,12 @@
authenticate! if settings.authenticate
end
get %r{/(.*?)/(.*?/{0,1}.*)$} do |name, path|
content_type :json
- path = path.split("/")
+ path = path.split('/')
ref = path.shift
- tree = repository.tree(ref, path.join("/"))
+ tree = repository.tree(ref, path.join('/'))
tree.to_json(:max_nesting => tree.size*6)
end
private