I actually figured out one way. Although it required hacking the gitlab code. I did the following:
In .../gitlab/config/routes.rb I commented out the Grack support so that HTTP requests for repos wouldn't even be routed.
# Disable Grack support
# mount Grack::Bundle.new({
# git_path: Gitlab.config.git.bin_path,
# project_root: Gitlab.config.gitolite.repos_path,
# upload_pack: Gitlab.config.gitolite.upload_pack,
# receive_pack: Gitlab.config.gitolite.receive_pack
# }), at: '/', constraints: lambda { |request| /[-\/\w\.-]+\.git\//.match(request.path_info) }
In .../gitlab/app/views/shared/_clone_panel.html.haml, I disabled the HTTP button:
%button{:disabled => true, class: "btn", :"data-clone" => @project.http_url_to_repo}= Gitlab.config.gitlab.protocol.upcase
After this, you need to issue the following command to re-compile that HAML file. From .../gitlab :
rake assets:precompile
I don't necessarily recommend this approach, but until I hear about something better...
Hope this helps.
-brian