From: Jonathan Nieder <hidden> Date: 2016-06-15 22:49:28
Hi again,
Uwe Kleine-König wrote:
when I start git instaweb on a git repository, I get a crippled view
(no style sheets, no images) that doesn't include the current project.
Ok, so the proper fix is v1.7.2-rc0~55^2~3, but that seems too dramatic
to try at the moment for squeeze (for which the plan is to basically
go with gitweb and instaweb 1.7.1). Does this workaround help?
Eric, do you think it is worth duplicating the logo and favicon within
pre-v1.7.2 instaweb? The script already takes 252 KiB, so an extra
10 KiB might not be such a big deal.
Signed-off-by: Jonathan Nieder <redacted>
---
From: Eric Wong <hidden> Date: 2016-06-15 22:49:28
Jonathan Nieder [off-list ref] wrote:
Uwe Kleine-König wrote:
quoted
when I start git instaweb on a git repository, I get a crippled view
(no style sheets, no images) that doesn't include the current project.
Eric, do you think it is worth duplicating the logo and favicon within
pre-v1.7.2 instaweb? The script already takes 252 KiB, so an extra
10 KiB might not be such a big deal.
The stylesheet is important and should be fixed. I don't care about the
logo and favicon (warning: I've never been a fan of logos/icons,
needless noise IMHO), but if you're willing to help maintain it then
it's fine by me.
--
Eric Wong
From: Jonathan Nieder <hidden> Date: 2016-06-15 22:49:28
Eric Wong wrote:
quoted
Uwe Kleine-König wrote:
quoted
when I start git instaweb on a git repository, I get a crippled view
(no style sheets, no images) that doesn't include the current project.
[...]
The stylesheet is important and should be fixed. I don't care about the
logo and favicon (warning: I've never been a fan of logos/icons,
needless noise IMHO), but if you're willing to help maintain it then
it's fine by me.
Thanks, Eric; that makes sense. How about this?
The purpose of this series is the first patch, which allows
old-fashioned instaweb to run even if /etc/gitweb.conf specifies some
layout it does not expect.
I suspect this problem is already fixed in maint by v1.7.2-rc0~55^2~3
(git-instaweb: Configure it to work with new gitweb structure,
2010-05-28; thanks, Pavan!), but users that do not like gitweb version
numbers with a 2 in them will not be able to use that.
Patches 2-4 fix some spurious 404 errors due to missing images,
noticed while debugging.
Patches are against Junio's maint-1.7.1.
Jonathan Nieder (4):
instaweb: ignore GITWEB_CONFIG_SYSTEM
gitweb: skip logo in atom feed when there is none
gitweb: make logo optional
instaweb: disable logo and favicon by default
git-instaweb.sh | 6 +++++-
gitweb/gitweb.perl | 12 +++++++-----
2 files changed, 12 insertions(+), 6 deletions(-)
--
1.7.2.2
From: Jonathan Nieder <hidden> Date: 2016-06-15 22:49:28
The configuration in /etc/gitweb.conf might specify any old
layout; in particular, it is likely not to be identical to that
which git instaweb sets up. Noticed by Uwe Kleine-König.
Reported-by: Uwe Kleine-König <redacted>
Cc: Eric Wong <redacted>
Signed-off-by: Jonathan Nieder <redacted>
---
git-instaweb.sh | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
From: Jonathan Nieder <hidden> Date: 2016-06-15 22:49:28
With v1.5.0-rc0~169 (gitweb: Fix Atom feed <logo>: it is $logo,
not $logo_url, 2006-12-04), the logo URI to be written to Atom
feeds was corrected but the case of no logo forgotten.
Cc: Jakub Narebski <redacted>
Cc: Eric Wong <redacted>
Signed-off-by: Jonathan Nieder <redacted>
---
Theoretical, untested.
gitweb/gitweb.perl | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
@@ -6630,7 +6630,7 @@ XMLif(defined$favicon){print"<icon>".esc_url($favicon)."</icon>\n";}-if(defined$logo_url){+if(defined$logo){# not twice as wide as tall: 72 x 27 pixelsprint"<logo>".esc_url($logo)."</logo>\n";}
From: Jonathan Nieder <hidden> Date: 2016-06-15 22:49:28
Some sites may not want to have a logo at all. In particular,
git instaweb can benefit from this.
Cc: Jakub Narebski <redacted>
Cc: Eric Wong <redacted>
Signed-off-by: Jonathan Nieder <redacted>
---
gitweb/gitweb.perl | 10 ++++++----
1 files changed, 6 insertions(+), 4 deletions(-)
From: Jonathan Nieder <hidden> Date: 2016-06-15 22:49:28
Avoid 404 errors due to the missing git logo and favicon.
Reported-by: Uwe Kleine-König <redacted>
Cc: Eric Wong <redacted>
Cc: Jakub Narebski <redacted>
Signed-off-by: Jonathan Nieder <redacted>
---
Thanks for reading.
git-instaweb.sh | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
From: Eric Wong <hidden> Date: 2016-06-15 22:49:28
Jonathan Nieder [off-list ref] wrote:
Eric Wong wrote:
quoted
quoted
Uwe Kleine-König wrote:
quoted
when I start git instaweb on a git repository, I get a crippled view
(no style sheets, no images) that doesn't include the current project.
[...]
quoted
The stylesheet is important and should be fixed. I don't care about the
logo and favicon (warning: I've never been a fan of logos/icons,
needless noise IMHO), but if you're willing to help maintain it then
it's fine by me.
Thanks, Eric; that makes sense. How about this?
Untested, but everything looks reasonable to me, thanks!
--
Eric Wong
From: Jonathan Nieder <hidden> Date: 2016-06-15 22:49:28
Avoid 404 errors due to the missing git logo and favicon.
Reported-by: Uwe Kleine-König <redacted>
Cc: Eric Wong <redacted>
Cc: Jakub Narebski <redacted>
Signed-off-by: Jonathan Nieder <redacted>
---
Jonathan Nieder wrote: