Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

git fetching over http could access the wrong repository.

Access the repository using the user+repo combination not just the
repository name otherwise it will simply go to the first one
the was created with the repository name which might not be the
one that is wanted.
  • Loading branch information...
commit ddd8039e31d00347510db1324e148cc8956d77ec 1 parent dbdb6ed
Benjamin C Meyer authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 web/app/controllers/repositories_controller.rb
4 web/app/controllers/repositories_controller.rb
View
@@ -30,8 +30,8 @@ def raw
end
def httpgit
- @repository = Repository.find_by_name(params[:repo])
- return if !@repository || !@repository.public
+ return if !find_repository
+ return if !@repository.public
@path = ''
@path = params[:path].join('/') if params[:path]
Please sign in to comment.
Something went wrong with that request. Please try again.