Hi,
Uwe Kleine-König wrote:
> when I start git instaweb on a git repository, I get a crippled view
> (no style sheets, no images) that doesn't include the current project.
Odd. I get correct stylesheets and the current project is shown,
but the git logo is absent.
$ git instaweb --local --httpd=apache2 --browser=chromium-browser
[Thu Aug 19 18:16:57 2010] [warn] PassEnv variable GITWEB_CONFIG was undefined
^Z
[1]+ Stopped git instaweb --local --httpd=apache2
--browser=chromium-browser
$ ls -l .git/gitweb
total 264
drwxrwxr-x 2 jrn jrn 4096 Jul 30 00:48 apache2
-rwxrwxr-x 1 jrn jrn 210834 Aug 19 18:16 gitweb.cgi
-rw-rw-r-- 1 jrn jrn 8925 Aug 19 18:16 gitweb.css
-rw-rw-r-- 1 jrn jrn 24143 Aug 19 18:16 gitweb.js
-rw-rw-r-- 1 jrn jrn 144 Jul 30 00:48 gitweb_config.perl
-rw-rw-r-- 1 jrn jrn 624 Aug 19 18:16 httpd.conf
drwxrwxr-x 2 jrn jrn 4096 Aug 19 18:11 logs
drwxrwxr-x 2 jrn jrn 4096 Jul 30 00:48 tmp
My /etc/gitweb.conf is not the default one, though; it includes
relative URLs like
$stylesheet = "gitweb.css"
to fix <http://bugs.debian.org/568343>. (The gitweb.conf fix will be
included in the next Debian upload.)
On the other hand it makes sense to me that git instaweb should be
putting a gitweb.conf in .git/gitweb so users are not at the mercy of
a site's administrator. If you have time to work on this, a patch for
that would be very helpful.
Thanks for the report.
Jonathan
--
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]