From a20fb50be5bb0d585c04b96969aa3a61b26686ce Mon Sep 17 00:00:00 2001 From: Jeremy Stanley Date: Wed, 10 Dec 2014 18:45:27 +0000 Subject: [PATCH] Disable cgit's dumb HTTP protocol endpoint support * modules/openstack_project/files/git/cgitrc: The dumb HTTP protocol support in cgit is an attractive nuisance and source of surprising random errors for users who misconfigure their repositories to use it as a remote. We provide a separate smart HTTP backend and configure cgit to list that as the clone URL anyway, so the default enable-http-clone is disabled to avoid further accidental use. Change-Id: Iacc34ba51cd835f7e999b753e06ef6eea41630df --- modules/openstack_project/files/git/cgitrc | 3 +++ 1 file changed, 3 insertions(+) diff --git a/modules/openstack_project/files/git/cgitrc b/modules/openstack_project/files/git/cgitrc index d95ed57094..e57dfcd0c1 100644 --- a/modules/openstack_project/files/git/cgitrc +++ b/modules/openstack_project/files/git/cgitrc @@ -29,6 +29,9 @@ enable-index-owner=0 # Show extra links for each repository on the index page enable-index-links=1 +# Disable dumb HTTP git protocol endoint +enable-http-clone=0 + # Add a cgit favicon favicon=/static/favicon.ico