project-root.patch 577 B

1234567891011121314151617181920
  1. --- gitweb/gitweb.perl 2007-04-04 11:40:33.000000000 +0300
  2. +++ gitweb/gitweb.perl 2007-04-08 21:30:31.000000000 +0300
  3. @@ -32,8 +32,14 @@
  4. our $GIT = "++GIT_BINDIR++/git";
  5. # absolute fs-path which will be prepended to the project path
  6. -#our $projectroot = "/pub/scm";
  7. -our $projectroot = "++GITWEB_PROJECTROOT++";
  8. +our $projectroot = "/usr/local/scm";
  9. +open(CONF, '/etc/conf.d/gitweb');
  10. +
  11. +while (<CONF>) {
  12. + do { $projectroot = $1; last } if /^PROJECT_ROOT="([^"]+)"/;
  13. +}
  14. +
  15. +close(CONF);
  16. # target of the home link on top of all pages
  17. our $home_link = $my_uri || "/";