Skip to content

Commit

Permalink
gitweb: Fix up bogus $stylesheet declarations
Browse files Browse the repository at this point in the history
This seems to be a pre-++ residual declaration and it wasn't good for
anything at all besides flooding the webserver errorlog with "omg, our in
the same scope!!" warnings.

[jc: the patch was bogus by defining the variable which defeated a
 later test that checked it with "defined", which I fixed up.]

Signed-off-by: Petr Baudis <pasky@suse.cz>
Signed-off-by: Junio C Hamano <junkio@cox.net>
  • Loading branch information
Petr Baudis authored and Junio C Hamano committed Oct 28, 2006
1 parent 36889a5 commit 887a612
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions gitweb/gitweb.perl
Original file line number Diff line number Diff line change
Expand Up @@ -51,12 +51,8 @@

# URI of stylesheets
our @stylesheets = ("++GITWEB_CSS++");
our $stylesheet;
# default is not to define style sheet, but it can be overwritten later
undef $stylesheet;

# URI of default stylesheet
our $stylesheet = "++GITWEB_CSS++";
# URI of a single stylesheet, which can be overridden in GITWEB_CONFIG.
our $stylesheet = undef;
# URI of GIT logo (72x27 size)
our $logo = "++GITWEB_LOGO++";
# URI of GIT favicon, assumed to be image/png type
Expand Down

0 comments on commit 887a612

Please sign in to comment.