We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 6914c66 + e6e592d commit 7d18122Copy full SHA for 7d18122
gitweb/gitweb.perl
@@ -554,11 +554,14 @@ sub filter_snapshot_fmts {
554
}
555
556
our $GITWEB_CONFIG = $ENV{'GITWEB_CONFIG'} || "++GITWEB_CONFIG++";
557
+our $GITWEB_CONFIG_SYSTEM = $ENV{'GITWEB_CONFIG_SYSTEM'} || "++GITWEB_CONFIG_SYSTEM++";
558
+# die if there are errors parsing config file
559
if (-e $GITWEB_CONFIG) {
560
do $GITWEB_CONFIG;
-} else {
- our $GITWEB_CONFIG_SYSTEM = $ENV{'GITWEB_CONFIG_SYSTEM'} || "++GITWEB_CONFIG_SYSTEM++";
561
- do $GITWEB_CONFIG_SYSTEM if -e $GITWEB_CONFIG_SYSTEM;
+ die $@ if $@;
562
+} elsif (-e $GITWEB_CONFIG_SYSTEM) {
563
+ do $GITWEB_CONFIG_SYSTEM;
564
565
566
567
# Get loadavg of system, to compare against $maxload.
0 commit comments