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

Re: [PATCH v3] gitweb: Replace <base> tag with full URLs (when using PATH_INFO)

From
Junio C Hamano <gitster@pobox.com>
Date
Jul 13, 2020, 04:34 UTC
Message-ID
<xmqqa704owwz.fsf@gitster.c.googlers.com>
In-Reply-To
<20200712230508.GA1000433@isticktoit.net>
Tobias Girstmair <tobi@isticktoit.net> writes:
Show 15 quoted lines
> On Sun, Jul 12, 2020 at 02:00:01PM -0700, Junio C Hamano wrote:
>>Sorry, but I am not sure the description is understandable to the
>>intended readers of this sentence.
>>
>>Where does this README.html come from?
>
> gitweb reads a README.html from each repository to display on the
> summary page. 'man 1 gitweb' has a paragraph on it under
> "Per-repository gitweb configuration".
>
>>Is it stored in the history of the repository as a blob, and sent to
>>the browser with a call to git_blob_plain() sub?  Wouldn't that
>
> No, it's a plain file in a bare repository, placed there either
> manually or by a post-update hook.
OK.
> ... If the user wanted to
> include an image, they'd write <img src="blob_plain/HEAD:/image.png">
> (assuming this patch landed).

And without this patch, the src URL needs to know where this repository appears in the site's URL namespace?

If that is the case, the change makes quite a lot of sense.
Thanks.
Previous: Tobias GirstmairNext: Tobias Girstmair
Message 6 of 10 in “gitweb: Replace <base> tag with full URLs (when using PATH_INFO)”
  1. gitweb: Replace <base> tag with full URLs (when using PATH_INFO)Tobias Girstmair, Jul 11, 2020
  2. gitweb: Replace <base> tag with full URLs (when using PATH_INFO)Tobias Girstmair, Jul 12, 2020
  3. gitweb: Replace <base> tag with full URLs (when using PATH_INFO)Tobias Girstmair, Jul 12, 2020
  4. Junio C HamanoJul 12, 2020
  5. Tobias GirstmairJul 12, 2020
  6. Junio C HamanoJul 13, 2020
  7. Tobias GirstmairJul 13, 2020
  8. Junio C HamanoJul 13, 2020
  9. Tobias GirstmairJul 13, 2020
  10. Tobias GirstmairNov 20, 2020

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.