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

Re: [PATCH] pack.indexversion config option now defaults to 2

From
Mike Hommey <mh@glandium.org>
Date
Jun 25, 2008, 06:14 UTC
Message-ID
<20080625061453.GA32178@glandium.org>
In-Reply-To
<7viqvy59qr.fsf@gitster.siamese.dyndns.org>
On Tue, Jun 24, 2008 at 11:06:36PM -0700, Junio C Hamano wrote:
Show 15 quoted lines
> Mike Hommey <mh@glandium.org> writes:
> 
> > Wouldn't it be a good idea to add a warning in git update-server-info
> > when it detects pack.indexVersion is not 1, too ?
> 
> Can you describe how that warning will help whom in the bigger picture?
> 
> The way as I understand everybody runs "git update-server-info" is:
> 
>  * "git push" pushes into a publishing repository, then
>  * "post-receive" (or "post-update") hook triggers "update-server-info".
> 
> If you spit out a warning from update-server-info, it will be shown to the
> pusher over sideband, but this will not necessarily help the pusher, who
> may or may not have shell access to the repository.

There are also those that get the message to run update-server-info when trying to clone over dumb protocol when the info/refs file is not there... I actually didn't think about the post-receive hook.

Well, then, update-server-info could output the warning only if stderr is a tty.

Mike
Previous: Junio C HamanoNext: Nicolas Pitre
Message 6 of 10 in “pack.indexversion config option now defaults to 2”
  1. pack.indexversion config option now defaults to 2Nicolas Pitre, Jun 25, 2008
  2. Linus TorvaldsJun 25, 2008
  3. Junio C HamanoJun 25, 2008
  4. Mike HommeyJun 25, 2008
  5. Junio C HamanoJun 25, 2008
  6. Mike HommeyJun 25, 2008
  7. Nicolas PitreJun 25, 2008
  8. Mike HommeyJun 25, 2008
  9. Nicolas PitreJun 25, 2008
  10. Junio C HamanoJun 25, 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.