Merge pull request #5760 from dermoth/master

Fix HTTP push to public repos
This commit is contained in:
Dmitriy Zaporozhets 2014-01-07 02:47:56 -08:00
commit 1ad2a93678

View file

@ -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