{"thread":{"id":"32240","subject":"Ubuntu: gitweb always looks for projects in /var/cache/git (“404 - no projects found”)","startedAt":"2012-11-29T13:55:57Z","lastAt":"2012-12-03T17:10:56Z","messageCount":3,"participants":["Alfonso Muñoz-Pomer Fuentes","Jeff King"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"204253","messageId":"loom.20121129T145320-133@post.gmane.org","threadId":"32240","inReplyTo":null,"subject":"Ubuntu: gitweb always looks for projects in /var/cache/git (“404 - no projects found”)","fromName":"Alfonso Muñoz-Pomer Fuentes","fromEmail":"alfonso.munozpomer@vti.bund.de","sentAt":"2012-11-29T13:55:57Z","receivedAt":"2012-11-29T13:55:57Z","isPatch":false,"sender":{"key":"alfonso.munozpomer@vti.bund.de","avatar":null},"body":"I’ve discovered this weird behaviour in gitweb and documented a workaround in\nStackOverflow:\nhttp://stackoverflow.com/questions/13609475/ubuntu-gitweb-always-looks-for-projects-in-var-cache-git-404-no-projects-f\n\nBasically, the variable $projectroot in gitweb.cgi in the beginning is reset to\nthe system default value in git_get_projects_list, when it is declared again.\n\nIs this a known bug? Or am I missing something?\n"},{"id":"204273","messageId":"20121129182826.GB17309@sigill.intra.peff.net","threadId":"32240","inReplyTo":"loom.20121129T145320-133@post.gmane.org","subject":"Re: Ubuntu: gitweb always looks for projects in /var/cache/git (“404 - no projects found”)","fromName":"Jeff King","fromEmail":"peff@peff.net","sentAt":"2012-11-29T18:28:26Z","receivedAt":"2012-11-29T18:28:26Z","isPatch":false,"sender":{"key":"peff@peff.net","avatar":"https://avatars.githubusercontent.com/u/45925?v=4"},"body":"On Thu, Nov 29, 2012 at 01:55:57PM +0000, Alfonso Muñoz-Pomer Fuentes wrote:\n\n> I’ve discovered this weird behaviour in gitweb and documented a workaround in\n> StackOverflow:\n> http://stackoverflow.com/questions/13609475/ubuntu-gitweb-always-looks-for-projects-in-var-cache-git-404-no-projects-f\n> \n> Basically, the variable $projectroot in gitweb.cgi in the beginning is reset to\n> the system default value in git_get_projects_list, when it is declared again.\n> \n> Is this a known bug? Or am I missing something?\n\nI think the analysis in that stack overflow post is wrong. The use of\n\"our\" in git_get_projects_list is not the culprit.\n\nThe problem is that one should not edit gitweb.cgi directly; its\nbuilt-in defaults (which you are tweaking) are overridden by\n/etc/gitweb.conf, which is shipped by the Ubuntu package. You should\nbe making your changes in the config file, not the CGI script.\n\n-Peff\n"},{"id":"204456","messageId":"50BCDD20.1050709@vti.bund.de","threadId":"32240","inReplyTo":"20121129182826.GB17309@sigill.intra.peff.net","subject":"Re: Ubuntu: gitweb always looks for projects in /var/cache/git (“404 - no projects found”)","fromName":"Alfonso Muñoz-Pomer Fuentes","fromEmail":"alfonso.munozpomer@vti.bund.de","sentAt":"2012-12-03T17:10:56Z","receivedAt":"2012-12-03T17:10:56Z","isPatch":false,"sender":{"key":"alfonso.munozpomer@vti.bund.de","avatar":null},"body":"Thank you very much for the clarification. Noticing how this wasn’t \ndocumented anywhere I had the feeling that I was missing something.\n\nOn Thu 29 Nov 2012 19:28:26 CET, Jeff King wrote:\n> On Thu, Nov 29, 2012 at 01:55:57PM +0000, Alfonso Muñoz-Pomer Fuentes wrote:\n>\n>> I’ve discovered this weird behaviour in gitweb and documented a workaround in\n>> StackOverflow:\n>> http://stackoverflow.com/questions/13609475/ubuntu-gitweb-always-looks-for-projects-in-var-cache-git-404-no-projects-f\n>>\n>> Basically, the variable $projectroot in gitweb.cgi in the beginning is reset to\n>> the system default value in git_get_projects_list, when it is declared again.\n>>\n>> Is this a known bug? Or am I missing something?\n>\n> I think the analysis in that stack overflow post is wrong. The use of\n> \"our\" in git_get_projects_list is not the culprit.\n>\n> The problem is that one should not edit gitweb.cgi directly; its\n> built-in defaults (which you are tweaking) are overridden by\n> /etc/gitweb.conf, which is shipped by the Ubuntu package. You should\n> be making your changes in the config file, not the CGI script.\n>\n> -Peff\n\n--\nAlfonso Muñoz-Pomer Fuentes\nJohann Heinrich von Thünen-Institut\nBundesforschungsinstitut für Ländliche Räume, Wald und Fischerei\nInstitut für Forstgenetik\nSieker Landstrasse 2\n22927 Grosshansdorf\n\nTelefon: +49 (0)4102/696-145\nFax:     +49 (0)4102/696-200\nEmail:   alfonso.munozpomer@vti.bund.de\nWeb:     http://www.vti.bund.de\n"}]}