Commit a536a9ed authored by Luke "Jared" Bennett's avatar Luke "Jared" Bennett

Fix repo break when no readme

parent 5505dcad
...@@ -14,7 +14,7 @@ module TreeHelper ...@@ -14,7 +14,7 @@ module TreeHelper
def repo_url(project) def repo_url(project)
if controller_name == 'projects' if controller_name == 'projects'
readme_path(project) readme_path(project) || project_tree_path(project, project.default_branch)
else else
request.original_url request.original_url
end end
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment