* rc3 gitweb is broken, won't deliver snapshots
@ 2007-07-25 13:27 Mark Levedahl
2007-07-25 22:17 ` [PATCH] gitweb: Fix error in generating snapshot Jakub Narebski
2007-07-25 22:48 ` rc3 gitweb is broken, won't deliver snapshots Junio C Hamano
0 siblings, 2 replies; 5+ messages in thread
From: Mark Levedahl @ 2007-07-25 13:27 UTC (permalink / raw)
To: Git Mailing List, Junio C Hamano
gitweb in 1.5.3-rc3 fails to deliver snapshots in any useable format
(bzip2, gz, or zip). Clicking on a link seems to work, but the
delivered file as stored on my system is empty. No error messages
appear anywhere I can find. I am hosting gitweb on FC7 using lighttpd,
if that matters.
The snapshot service at git.kernel.org also seems broken, I don't know
what gitweb is running there so don't know if the issue is related.
I have fixed this for my use by reverting the following commits
3473e7df5f8c7f8dc3e2c3f2fdc99a1d1a719c16 gitweb: More detailed error
messages for snapshot format
a781785d8f1eb7adf05a24b121104716a086a67a gitweb: Fix support for
legacy gitweb config for snapshots
a3c8ab30a54c30a6a434760bedf04548425416ef gitweb: snapshot cleanups &
support for offering multiple formats
The snapshot problem first appears when a3c8ab30a54 is applied.
Mark Levedahl
^ permalink raw reply [flat|nested] 5+ messages in thread
* [PATCH] gitweb: Fix error in generating snapshot
2007-07-25 13:27 rc3 gitweb is broken, won't deliver snapshots Mark Levedahl
@ 2007-07-25 22:17 ` Jakub Narebski
2007-07-25 22:47 ` Junio C Hamano
2007-07-26 9:17 ` Jakub Narebski
2007-07-25 22:48 ` rc3 gitweb is broken, won't deliver snapshots Junio C Hamano
1 sibling, 2 replies; 5+ messages in thread
From: Jakub Narebski @ 2007-07-25 22:17 UTC (permalink / raw)
To: git; +Cc: Jakub Narebski
There was an error while generating cmmandline to run git-archive:
there were no whitespace between two options.
Signed-off-by: Jakub Narebski <jnareb@gmail.com>
---
gitweb/gitweb.perl | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/gitweb/gitweb.perl b/gitweb/gitweb.perl
index 0acd0ca..b381692 100755
--- a/gitweb/gitweb.perl
+++ b/gitweb/gitweb.perl
@@ -4343,7 +4343,7 @@ sub git_snapshot {
my $cmd;
$filename .= "-$hash$known_snapshot_formats{$format}{'suffix'}";
$cmd = "$git_command archive " .
- "--format=$known_snapshot_formats{$format}{'format'}" .
+ "--format=$known_snapshot_formats{$format}{'format'} " .
"--prefix=\'$name\'/ $hash";
if (exists $known_snapshot_formats{$format}{'compressor'}) {
$cmd .= ' | ' . join ' ', @{$known_snapshot_formats{$format}{'compressor'}};
--
1.5.2.4
^ permalink raw reply related [flat|nested] 5+ messages in thread
* Re: rc3 gitweb is broken, won't deliver snapshots
2007-07-25 13:27 rc3 gitweb is broken, won't deliver snapshots Mark Levedahl
2007-07-25 22:17 ` [PATCH] gitweb: Fix error in generating snapshot Jakub Narebski
@ 2007-07-25 22:48 ` Junio C Hamano
1 sibling, 0 replies; 5+ messages in thread
From: Junio C Hamano @ 2007-07-25 22:48 UTC (permalink / raw)
To: Mark Levedahl; +Cc: Git Mailing List
"Mark Levedahl" <mlevedahl@gmail.com> writes:
> gitweb in 1.5.3-rc3 fails to deliver snapshots in any useable format
> (bzip2, gz, or zip). Clicking on a link seems to work, but the
> delivered file as stored on my system is empty. No error messages
> appear anywhere I can find. I am hosting gitweb on FC7 using lighttpd,
> if that matters.
>
> The snapshot service at git.kernel.org also seems broken, I don't know
> what gitweb is running there so don't know if the issue is related.
>
> I have fixed this for my use by reverting the following commits
>
> 3473e7df5f8c7f8dc3e2c3f2fdc99a1d1a719c16 gitweb: More detailed error
> messages for snapshot format
> a781785d8f1eb7adf05a24b121104716a086a67a gitweb: Fix support for
> legacy gitweb config for snapshots
> a3c8ab30a54c30a6a434760bedf04548425416ef gitweb: snapshot cleanups &
> support for offering multiple formats
>
> The snapshot problem first appears when a3c8ab30a54 is applied.
True. I wonder if people who submitted patches even tested
these things... Sigh.
---
gitweb/gitweb.perl | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/gitweb/gitweb.perl b/gitweb/gitweb.perl
index 0acd0ca..b381692 100755
--- a/gitweb/gitweb.perl
+++ b/gitweb/gitweb.perl
@@ -4343,7 +4343,7 @@ sub git_snapshot {
my $cmd;
$filename .= "-$hash$known_snapshot_formats{$format}{'suffix'}";
$cmd = "$git_command archive " .
- "--format=$known_snapshot_formats{$format}{'format'}" .
+ "--format=$known_snapshot_formats{$format}{'format'} " .
"--prefix=\'$name\'/ $hash";
if (exists $known_snapshot_formats{$format}{'compressor'}) {
$cmd .= ' | ' . join ' ', @{$known_snapshot_formats{$format}{'compressor'}};
^ permalink raw reply related [flat|nested] 5+ messages in thread
end of thread, other threads:[~2007-07-26 9:18 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-07-25 13:27 rc3 gitweb is broken, won't deliver snapshots Mark Levedahl
2007-07-25 22:17 ` [PATCH] gitweb: Fix error in generating snapshot Jakub Narebski
2007-07-25 22:47 ` Junio C Hamano
2007-07-26 9:17 ` Jakub Narebski
2007-07-25 22:48 ` rc3 gitweb is broken, won't deliver snapshots Junio C Hamano
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).