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

Re: Git dumb HTTP protocol should work without update-server-info

From
brian m. carlson <sandals@crustytoothpaste.net>
Date
Sep 7, 2025, 17:42 UTC
Message-ID
<aL3EE7dLMuj6ONZQ@fruit.crustytoothpaste.net>
In-Reply-To
<CAGiEHCvFnhZRXwNVRyzQ4ABi3p0Opdo8+draXoDu5p1R6HZn1Q@mail.gmail.com>
On 2025-09-07 at 17:23:28, Milan Hauth wrote:
Show 7 quoted lines
> > HTTP push
> 
> im only talking about "read" operations:
> 
> git ls-remote
> git fetch
> git pull

Yes, as I said, reading directories is only possible with WebDAV since HTTP doesn't offer native directory listing. However, we don't use WebDAV for fetches and other read operations and not all web servers support it. We get better web server support in many cases by requiring that the server side do the work of updating the lists of packs and refs.

Without some way to list directories, you cannot in the general case iterate over the refs and packs in the file system without a manifest, so creating a manifest is what update-server-info does.

This is also why most tools which provide HTTP access in the file system require WebDAV, since it isn't very useful to have a file system where you can't list directories. (We abandoned directory-less file systems in the early DOS and Macintosh days.)

-- 
brian m. carlson (they/them)
Toronto, Ontario, CA
Previous: Milan HauthNext: Patrick Steinhardt
Message 4 of 11 in “Git dumb HTTP protocol should work without update-server-info”
  1. Milan HauthSep 7, 2025
  2. brian m. carlsonSep 7, 2025
  3. Milan HauthSep 7, 2025
  4. brian m. carlsonSep 7, 2025
  5. Patrick SteinhardtSep 8, 2025
  6. Junio C HamanoSep 8, 2025
  7. Patrick SteinhardtSep 9, 2025
  8. Jeff KingSep 8, 2025
  9. Junio C HamanoSep 8, 2025
  10. brian m. carlsonSep 8, 2025
  11. Jeff KingSep 9, 2025

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.