I suppose so, by reading this test:
context "disabling of http cloning" do
setup { GitoriousConfig['hide_http_clone_urls'] = true }
teardown { GitoriousConfig['hide_http_clone_urls'] = false }
should "not allow http cloning if denied by configuration" do
['git.gitorious.org','git.gitorious.local','git.foo.com'].each
do |host|
get @request_uri, {}, :host => host
assert_response :not_found
assert_nil headers['X-Sendfile']
end
end
end
Test it yourself.
Cheers!
Em 17-06-2011 13:16, Areva escreveu:
Thank you for such a quick response.
I did see that, now do I understand correctly that it will disable
anyone from using http to clone?
On Jun 17, 8:43 am, Rodrigo Rosenfeld Rosas<[email protected]>
wrote:
Take a look at this snippet in config/gitorious.yml:
# Should we hide HTTP clone urls?
hide_http_clone_urls: false
Just set it to true.
Did I understand what you want?
Regards, Rodrigo.
Em 17-06-2011 12:23, Areva escreveu:
I may be missing this somewhere but is there a way to disable http
cloning of a repository? And I did notice that when logged in and http
selected from the clone and push it shows the url ashttp://git.git.DOMAINNAME.
Also, is there a list of options that can be set in the gitorious.yml?
Thanks for any insight.
Bill
--
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]