gitweb.cgi and git instaweb
I am getting errors as below with git instaweb.
kvaneesh@satan:/home/opensource/vanilla/linux-2.6-git$ git instaweb 2006-10-27 00:12:56: (log.c.75) server started kvaneesh@satan:/home/opensource/vanilla/linux-2.6-git$ [Fri Oct 27 00:12:57 2006] gitweb.cgi: "our" variable $stylesheet masks earlier declaration in same scope at /home/opensource/vanilla/linux-2.6-git/.git/gitweb/gitweb.cgi line 59. [Fri Oct 27 00:13:21 2006] gitweb.cgi: "our" variable $stylesheet masks earlier declaration in same scope at /home/opensource/vanilla/linux-2.6-git/.git/gitweb/gitweb.cgi line 59. [Fri Oct 27 00:13:37 2006] gitweb.cgi: "our" variable $stylesheet masks earlier declaration in same scope at /home/opensource/vanilla/linux-2.6-git/.git/gitweb/gitweb.cgi line 59. [Fri Oct 27 00:13:58 2006] gitweb.cgi: "our" variable $stylesheet masks earlier declaration in same scope at /home/opensource/vanilla/linux-2.6-git/.git/gitweb/gitweb.cgi line 59. [Fri Oct 27 00:14:08 2006] gitweb.cgi: "our" variable $stylesheet masks earlier declaration in same scope at /home/opensource/vanilla/linux-2.6-git/.git/gitweb/gitweb.cgi line 59. [Fri Oct 27 00:14:08 2006] gitweb.cgi: Use of uninitialized value in open at /home/opensource/vanilla/linux-2.6-git/.git/gitweb/gitweb.cgi line 1118. fatal: ambiguous argument '': unknown revision or path not in the working tree. Use '--' to separate paths from revisions [Fri Oct 27 00:14:16 2006] gitweb.cgi: "our" variable $stylesheet masks earlier declaration in same scope at /home/opensource/vanilla/linux-2.6-git/.git/gitweb/gitweb.cgi line 59.
Quoted 7 lines · Aneesh Kumar K.V
I am getting errors as below with git instaweb.
kvaneesh@satan:/home/opensource/vanilla/linux-2.6-git$ git instaweb 2006-10-27 00:12:56: (log.c.75) server started kvaneesh@satan:/home/opensource/vanilla/linux-2.6-git$ [Fri Oct 27 00:12:57 2006] gitweb.cgi: "our" variable $stylesheet masks earlier declaration in same scope at
The attached patch should fix it.
-aneesh
gitweb/gitweb.perl +0 -2
@@ -55,8 +55,6 @@ 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 GIT logo (72x27 size) our $logo = "++GITWEB_LOGO++"; # URI of GIT favicon, assumed to be image/png type
Quoted 19 lines · Aneesh Kumar K.V
Quoted 9 lines · Aneesh Kumar K.V
I am getting errors as below with git instaweb.
kvaneesh@satan:/home/opensource/vanilla/linux-2.6-git$ git instaweb 2006-10-27 00:12:56: (log.c.75) server started kvaneesh@satan:/home/opensource/vanilla/linux-2.6-git$ [Fri Oct 27 00:12:57 2006] gitweb.cgi: "our" variable $stylesheet masks earlier declaration in same scope atThe attached patch should fix it.
(quoted diff) +0
-1-aneeshgitweb/gitweb.perl +0
-0
gitweb/gitweb.perl our $stylesheet; · line 60
Quoted 8 lines
gitweb/gitweb.perl +0
-2@@ -55,8 +55,6 @@ 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 GIT logo (72x27 size) our $logo = "++GITWEB_LOGO++"; # URI of GIT favicon, assumed to be image/png type
Removing the extraneous undef would also be a good idea, wouldn't it?
gitweb/gitweb.perl +3 -5
@@ -51,12 +51,10 @@ our $site_footer = "++GITWEB_SITE_FOOTER # 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++"; +# default is not to define style sheet, but it can be overwritten later. +our $stylesheet = undef; + # URI of GIT logo (72x27 size) our $logo = "++GITWEB_LOGO++"; # URI of GIT favicon, assumed to be image/png type
Dear diary, on Fri, Oct 27, 2006 at 09:05:20AM CEST, I got a letter where Junio C Hamano <[email protected]> said that...
Quoted 2 lines
Removing the extraneous undef would also be a good idea, wouldn't it?
25746 F Oct 26 Petr Baudis ( 0.9K) [PATCH] gitweb: Fix up bogus $stylesheet declarations
?
Signature · 4 lines
Petr "Pasky" Baudis
Stuff: http://pasky.or.cz/
#!/bin/perl -sp0777i<X+d*lMLa^*lN%0]dsXx++lMlN/dsM0<j]dsj
$/=unpack('H*',$_);$_=`echo 16dio\U$k"SK$/SM$n\EsN0p[lN*1Quoted 43 lines · Junio C Hamano
Quoted 18 lines · Aneesh Kumar K.V
Quoted 9 lines · Aneesh Kumar K.V
I am getting errors as below with git instaweb.
kvaneesh@satan:/home/opensource/vanilla/linux-2.6-git$ git instaweb 2006-10-27 00:12:56: (log.c.75) server started kvaneesh@satan:/home/opensource/vanilla/linux-2.6-git$ [Fri Oct 27 00:12:57 2006] gitweb.cgi: "our" variable $stylesheet masks earlier declaration in same scope atThe attached patch should fix it.
(quoted diff) +0
-1-aneeshgitweb/gitweb.perl +0
-0gitweb/gitweb.perl our $stylesheet; · line 60
Quoted 8 lines
gitweb/gitweb.perl +0
-2@@ -55,8 +55,6 @@ 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 GIT logo (72x27 size) our $logo = "++GITWEB_LOGO++"; # URI of GIT favicon, assumed to be image/png typeRemoving the extraneous undef would also be a good idea, wouldn't it?
gitweb/gitweb.perl +0
-2@@ -51,12 +51,10 @@ our $site_footer = "++GITWEB_SITE_FOOTER # URI of stylesheets our @stylesheets = ("++GITWEB_CSS++"); -our $stylesheet; -# default is not to define style sheet, but it can be overwritten later
gitweb/gitweb.perl our $site_footer = "++GITWEB_SITE_FOOTER · line 60
Quoted 10 lines
gitweb/gitweb.perl +3
-3-undef $stylesheet; - # URI of default stylesheet -our $stylesheet = "++GITWEB_CSS++"; +# default is not to define style sheet, but it can be overwritten later. +our $stylesheet = undef; + # URI of GIT logo (72x27 size) our $logo = "++GITWEB_LOGO++"; # URI of GIT favicon, assumed to be image/png type
ACK