summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 3a36bc8)
raw | patch | inline | side by side (parent: 3a36bc8)
author | Dennis Stosberg <dennis@stosberg.net> | |
Tue, 29 Aug 2006 07:19:02 +0000 (09:19 +0200) | ||
committer | Junio C Hamano <junkio@cox.net> | |
Thu, 31 Aug 2006 19:57:08 +0000 (12:57 -0700) |
When run under mod_perl, require() will read and execute the configuration
file on the first invocation only. On every subsequent invocation, all
configuration variables will be reset to their default values. do() reads
and executes the configuration file unconditionally.
Signed-off-by: Dennis Stosberg <dennis@stosberg.net>
Signed-off-by: Junio C Hamano <junkio@cox.net>
file on the first invocation only. On every subsequent invocation, all
configuration variables will be reset to their default values. do() reads
and executes the configuration file unconditionally.
Signed-off-by: Dennis Stosberg <dennis@stosberg.net>
Signed-off-by: Junio C Hamano <junkio@cox.net>
gitweb/gitweb.perl | patch | blob | history |
diff --git a/gitweb/gitweb.perl b/gitweb/gitweb.perl
index 68f40bda8f97f4e238d13f0a7f4ad2adafd00198..7922c3ce547d7f7d861f9fbde926c32b3d50136b 100755 (executable)
--- a/gitweb/gitweb.perl
+++ b/gitweb/gitweb.perl
our @diff_opts = ('-M'); # taken from git_commit
our $GITWEB_CONFIG = $ENV{'GITWEB_CONFIG'} || "++GITWEB_CONFIG++";
-require $GITWEB_CONFIG if -e $GITWEB_CONFIG;
+do $GITWEB_CONFIG if -e $GITWEB_CONFIG;
# version of the core git binary
our $git_version = qx($GIT --version) =~ m/git version (.*)$/ ? $1 : "unknown";