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

Re: [PATCH 1/2] bundle-uri: ignore bundles without uri

From
Justin Tobler <jltobler@gmail.com>
Date
Sep 12, 2025, 17:11 UTC
Message-ID
<5hm6qdyn5ifs2kr33nwuc67qa3vdgis6w26rlvicrdzznzazzt@uytayxq5r25n>
In-Reply-To
<20250912-b4-toon-bundle-uri-no-uri-v1-1-f4525a406df8@iotcl.com>
On 25/09/12 06:46PM, Toon Claes wrote:
Show 8 quoted lines
> Bundle-URI can use the heuristic 'creationToken'. With this heuristic
> each bundle should specify a 'creationToken' next to the 'uri'
> attribute. But this allows misconfiguration where only a 'creationToken'
> and no 'uri' is specified for a bundle . Because Git expects each bundle
> to have a 'uri', this causes a segmentation fault.
> 
> Harden Git against bundles with missing 'uri' and skip bundles which
> miss this attribute.

Ultimately, the remote Git server is the source of truth and bundle-uri serves as a supplementary mechanism to retrieve objects. In cases where there are errors related to retrieving objects from the specified bundle-uri, it certainly makes sense for Git to warn/ignore these issues and continue on as if there was no bundle-uri.

I'm not sure though if this should extend to client-side misconfiguration. We don't want to segfault, but maybe we should return an error indicating the misconfiguration instead of just papering over it? At the very least, it would probably make sense to provide some sort of warning that the bundle-uri was misconfigured and not used.

-Justin
Previous: Toon ClaesNext: Junio C Hamano
Message 3 of 10 in “Make git-clone(1) more resilient when using bundle-URI”
  1. 0/2 Make git-clone(1) more resilient when using bundle-URIToon Claes, Sep 12, 2025
  2. 1/2 bundle-uri: ignore bundles without uriToon Claes, Sep 12, 2025
  3. Justin ToblerSep 12, 2025
  4. Junio C HamanoSep 12, 2025
  5. Toon ClaesSep 16, 2025
  6. Junio C HamanoSep 16, 2025
  7. 2/2 bundle-uri: do not abort on invalid packet lineToon Claes, Sep 12, 2025
  8. Justin ToblerSep 12, 2025
  9. Toon ClaesSep 17, 2025
  10. Justin ToblerSep 17, 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.