$GITWEB_CONFIG = '/mnt/data/gerrit/etc/gitweb_config.perl';
if (-e $GITWEB_CONFIG) {
do '/mnt/data/gerrit/etc/gitweb_config.perl';
}
$projectroot = $ENV{'GITWEB_PROJECTROOT'};
and I have the entry set correctly in my $site/etc/gitweb_config.perl'
# gitweb_config.perl
our $projectroot = "/mnt/data/gerrit/git"; <=====
Now If I edit the file under tmp and hardcode
$projectroot = "/mnt/data/gerrit/git";
then it starts working!
So not sure what is missing or of there is a bug
My etc/gerrit.config entry is
[gitweb]
type=gitweb
cgi=/var/www/git/gitweb.cgi
Any suggestions/pointers/hints how to resolve this?
Please let me know
Thanks
Pranab
Testing Gerrit 3.7.0 I find that gitweb doesn't work as documented.It gives 404 not found when trying to browse any project.
I tried to debug this .....under tmp I see that it is looking for$GITWEB_CONFIG = '/mnt/data/gerrit/etc/gitweb_config.perl';
if (-e $GITWEB_CONFIG) {
do '/mnt/data/gerrit/etc/gitweb_config.perl';
}
$projectroot = $ENV{'GITWEB_PROJECTROOT'};
and I have the entry set correctly in my $site/etc/gitweb_config.perl'
# gitweb_config.perl
our $projectroot = "/mnt/data/gerrit/git"; <=====
Now If I edit the file under tmp and hardcode
$projectroot = "/mnt/data/gerrit/git";
then it starts working!
So not sure what is missing or of there is a bug
My etc/gerrit.config entry is
[gitweb]
type=gitweb
cgi=/var/www/git/gitweb.cgi
Any suggestions/pointers/hints how to resolve this?
Please let me know
Thanks
Pranab
--
--
To unsubscribe, email repo-discuss...@googlegroups.com
More info at http://groups.google.com/group/repo-discuss?hl=en
---
You received this message because you are subscribed to the Google Groups "Repo and Gerrit Discussion" group.
To unsubscribe from this group and stop receiving emails from it, send an email to repo-discuss...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/repo-discuss/f16ab4a7-b3a5-4e05-a402-24432efc3075n%40googlegroups.com.
On Thu, Dec 8, 2022 at 1:41 AM Pranab Panda <pra...@pacbell.net> wrote:Testing Gerrit 3.7.0 I find that gitweb doesn't work as documented.It gives 404 not found when trying to browse any project.