Merge pull request #5760 from dermoth/master
Fix HTTP push to public repos
This commit is contained in:
commit
1ad2a93678
1 changed files with 3 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue