git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* gitweb: Broken links in blame view
@ 2008-06-22 21:37 Lea Wiemann
  0 siblings, 0 replies; only message in thread
From: Lea Wiemann @ 2008-06-22 21:37 UTC (permalink / raw)
  To: Git Mailing List

[-- Attachment #1: Type: text/plain, Size: 1039 bytes --]

Hi!

I (or rather, the link checker) has discovered another broken link, this 
time in gitweb's blame view, which happens if you blame files and it 
tries to get parents before the initial (first) commit in the repository:

1. Unpack test.git.tar.gz (attached) into gitweb's project root.

2. Make sure $feature{'blame'}{'default'} = [1]; is on in
gitweb_config.perl.

3. Open the following page:
http://localhost/.../gitweb.cgi?p=test.git;a=blame;f=file;h=f8c58d2c88cbcf660f473f8f123ee32db0d0d2be;hb=HEAD

4. Click the gray "1" line number -- you get a "400 - Invalid hash base 
parameter" response (or '403' instead of 400 if you're not on next).

(I've also reproduced this with gitweb revisions from 7 months ago, so 
it's not related to recent changes.)

Also, probably related, if you open the above blame view by calling 
gitweb.cgi on the command line, you'll see a bogus error message on 
STDERR: "fatal: ambiguous argument 'f891e539f...^': unknown revision" 
Note that f891... is the earliest revision in the repository.

-- Lea

[-- Attachment #2: test.git.tar.gz --]
[-- Type: application/gzip, Size: 9074 bytes --]

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2008-06-22 21:38 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-06-22 21:37 gitweb: Broken links in blame view Lea Wiemann

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).