gitweb拒绝责怪

我试图在我的Debian服务器上的项目目录中获得gitweb(git 1.8.4.2,通过git instaweb ),以提供责任意见。

在我的/etc/gitweb.conf

 … # default logo, favicon, etc. settings $feature{'blame'}{'default'} = [1]; $feature{'pickaxe'}{'default'} = [1]; $feature{'snapshot'}{'default'} = ['tgz', 'txz', 'zip']; $feature{'highlight'}{'default'} = [1]; $feature{'pathinfo'}{'default'} = [1]; 

在我的全局configuration文件中:

 [gitweb] blame = true snapshot = tgz, txz, zip patches = 256 avatar = gravatar [instaweb] local = false httpd = apache2 -f port = 4321 

在我的项目的.git/config文件中:

 [gitweb] blame = true 

然而,当我尝试加载一个混帐责怪视图(通过手工修改URL为http://myserversip:4321/?p=.git;a=blame;f=Tests/InchCoordProxyTests.m;h=b4b2…;hb=53b4 ,因为责怪行动链接不出现)

http://f.cl.ly/items/3D0X0i0c2b3d1A2w0l1f/2013-11-09%20at%2010%3A38.png

gitweb.cgi源代码中快速search“ gitweb.cgi view not allowed ”可以清楚地看到, gitweb_check_feature('blame')条件失败。


我究竟做错了什么?

或者,是否有一种方法可以详细地打印为什么gitweb正在做它正在做什么(例如哪些configuration文件被读取,哪些设置从每个文件加载等)?

看着git-instaweb.sh ,它似乎没有读取/etc/gitweb.conf而是$GIT_DIR/gitweb/gitweb_config.perl ,所以你需要编辑该文件。