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

Re: [PATCH 1/1] bundle verify: error out if called without an object database

From
Junio C Hamano <gitster@pobox.com>
Date
May 28, 2019, 20:03 UTC
Message-ID
<xmqqftoy1h4h.fsf@gitster-ct.c.googlers.com>
In-Reply-To
<20190528015133.GA29724@sigill.intra.peff.net>
Jeff King <peff@peff.net> writes:
Show 12 quoted lines
> As Gábor noted in the earlier thread, if the bundle doesn't have any
> prerequisites, this _used_ to work before b1ef400eec (setup_git_env:
> avoid blind fall-back to ".git", 2016-10-20). I don't know if anybody
> cares about that case or not, but we could do something like:
>
>   if (p->nr)
> 	verify_prerequisites();
>
>   /* otherwise, fall through to the printing portions */
>
> and then just check for a repository in verify_prerequisites(), which is
> the only part that needs to look at the repository object at all.

It depends on how important we consider the use of bundles that can be cloned from. If it is important enough, what you suggest is an improvement worth doing over what Dscho did.

A bundle that can be cloned from (i.e. no prerequisite) is meant to be used without having any repository by definition, so it is a grave regression to require object store when verifying such a bundle.

On the other hand, a bundle that cannot be cloned from but only usabel for an incremental sneaker-net update needs receiving repository anyway, so it is perfectly fine to require object store.

Previous: Jeff KingNext: Jeff King
Message 8 of 11 in “bundle verify: improve the user experience when called without a .git/ directory”
  1. 0/1 bundle verify: improve the user experience when called without a .git/ directoryJohannes Schindelin via GitGitGadget, May 27, 2019
  2. 1/1 bundle verify: error out if called without an object databaseJohannes Schindelin via GitGitGadget, May 27, 2019
  3. brian m. carlsonMay 27, 2019
  4. Johannes SchindelinMay 27, 2019
  5. Jeff KingMay 28, 2019
  6. Johannes SchindelinMay 28, 2019
  7. Jeff KingMay 28, 2019
  8. Junio C HamanoMay 28, 2019
  9. Jeff KingMay 28, 2019
  10. Junio C HamanoMay 28, 2019
  11. brian m. carlsonMay 27, 2019

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.