Commit 1ad2a936 authored by Dmitriy Zaporozhets's avatar Dmitriy Zaporozhets

Merge pull request #5760 from dermoth/master

Fix HTTP push to public repos
parents a00874a9 843548cc
......@@ -92,6 +92,9 @@ module Grack
return false unless can?(user, action, project)
end
# Never let git-receive-pack trough unauthenticated; it's
# harmless but git < 1.8 doesn't like it
return false if user.nil?
true
else
false
......
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