From 843548cc7681e600b1180a91a407385b35c7f23c Mon Sep 17 00:00:00 2001 From: Thomas Guyot-Sionnest Date: Wed, 4 Dec 2013 18:07:14 -0500 Subject: [PATCH] Fix HTTP push to public repos --- lib/gitlab/backend/grack_auth.rb | 3 +++ 1 file changed, 3 insertions(+), 0 deletions(-) diff --git a/lib/gitlab/backend/grack_auth.rb b/lib/gitlab/backend/grack_auth.rb index c629144..60c03ce 100644 --- a/lib/gitlab/backend/grack_auth.rb +++ b/lib/gitlab/backend/grack_auth.rb @@ -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 -- libgit2 0.21.2