git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: gitweb bug: broken "next" and other links

From
Wincent Colaiuta <win@wincent.com>
Date
Feb 12, 2008, 13:34 UTC
Message-ID
<2BAB20FB-3FDF-4133-A41A-55BB2AB32603@wincent.com>
In-Reply-To
<200802121410.58208.jnareb@gmail.com>
El 12/2/2008, a las 14:10, Jakub Narebski escribió:
Show 22 quoted lines
> Dnia wtorek 12. lutego 2008 13:24, Wincent Colaiuta napisał:
>> El 11/2/2008, a las 16:30, Jakub Narebski escribió:
>>>
>>> I'm sorry. You are right. I haven't seen breakage because it shows
>>> only when you use 'pathinfo' feature and pathinfo URLs.
>>>
>>> Below there is a fix for that; actully only second part mentioned
>>> (and first in patch) is needed, i.e. moving setting  
>>> $params{'project'}
>>> before dealing with -replay is needed I think to fix this bug.
>>>
>>> Could you test it please?
>>
>> Your patch fixes the "next" links in the shortlog and log views.
>>
>> It doesn't fix the broken "raw" links in the commitdiff view. I'm
>> still seeing links like:
>>
>> http://example.com/ARRAY(0x8c97f64)?a=commitdiff_plain;h=f29d56269a1c3bd4a970897397470f41553a64f9
>
> Could yu please give an URL for the page containing broken
> link
Any commitdiff page on repo.or.cz:
eg.
http://repo.or.cz/w/git.git?a=commitdiff;h=94bf9f7c37cca0241785a5f4e54e5cc98e175244
Any commitdiff page on my own gitweb install:
eg.
http://git.wincent.com/wikitext.git?a=commitdiff;h=f29d56269a1c3bd4a970897397470f41553a64f9
> relevant parts of gitweb configuration (gitweb_config.perl),
> and gitweb parts of repository configuration, if there are any?

Obviously I can't comment about the repo.or.cz config, but in my local install gitweb was built with:

make prefix=/usr/local \
  GITWEB_PROJECTROOT=/pub/git/path_to_public_repos \
  GITWEB_LIST=/pub/git/conf/gitweb-projects \
  GITWEB_STRICT_EXPORT=1 \
  GITWEB_CSS="/gitweb.css" \
  GITWEB_LOGO="/git-logo.png" \
  GITWEB_FAVICON="/git-favicon.png" \
  GITWEB_CONFIG="/pub/git/conf/gitweb.conf" \
  gitweb/gitweb.cgi
And gitweb.conf contains:

$feature{'search'}{'default'} = [undef]; $feature{'blame'}{'default'} = [undef]; $feature{'pickaxe'}{'default'} = [undef]; $feature{'grep'}{'default'} = [undef]; $feature{'pathinfo'}{'default'} = [1]; $my_uri = "http://git.wincent.com"; $home_link = "http://git.wincent.com/"; $site_name = "git.wincent.com";

So all pretty stock standard, I think.

Cheers, Wincent

Previous: Jakub NarebskiNext: Jakub Narebski
Message 9 of 16 in “gitweb bug: broken "next" and other links”
  1. Wincent ColaiutaFeb 11, 2008
  2. Jakub NarebskiFeb 11, 2008
  3. Wincent ColaiutaFeb 11, 2008
  4. Jakub NarebskiFeb 11, 2008
  5. Jakub NarebskiFeb 12, 2008
  6. Jakub NarebskiFeb 12, 2008
  7. Wincent ColaiutaFeb 12, 2008
  8. Jakub NarebskiFeb 12, 2008
  9. Wincent ColaiutaFeb 12, 2008
  10. Jakub NarebskiFeb 15, 2008
  11. Wincent ColaiutaFeb 17, 2008
  12. Junio C HamanoFeb 17, 2008
  13. Jakub NarebskiFeb 18, 2008
  14. Junio C HamanoFeb 18, 2008
  15. Jakub NarebskiFeb 19, 2008
  16. Wincent ColaiutaFeb 19, 2008

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.