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

Re: [PATCH] git-clone: use cpio's --quiet flag

From
Jeff King <peff@peff.net>
Date
Aug 5, 2007, 09:36 UTC
Message-ID
<20070805093645.GD12507@coredump.intra.peff.net>
In-Reply-To
<7v4pjefkdu.fsf@assigned-by-dhcp.cox.net>
On Sun, Aug 05, 2007 at 01:36:29AM -0700, Junio C Hamano wrote:
Show 9 quoted lines
> > I see, though the hardlink warning is a bit much.
> >
> > $ git-clone /path/on/fs/one /path/on/fs/two
> > Initialized empty Git repository in /path/on/fs/two/.git/
> > Warning: -l asked but cannot hardlink to /path/on/fs/one/.git
> > 36634 blocks
> 
> True; -l is not given explicitly in your example.  Should be
> trivial to fix.

Ah, indeed, I had assumed that it came from cpio (which also uses the -l flag!), but reading the code, it's us. Given that "-l" is now the default, and we silently downgrade to copying anyway, I don't see the point of having any warning at all. Unless, I guess, for those people who are still using "-l" even though it's a noop.

-Peff
Previous: Junio C Hamano
Message 9 of 9 in “git-clone: use cpio's --quiet flag”
  1. git-clone: use cpio's --quiet flagJeff King, Aug 4, 2007
  2. Johannes SchindelinAug 4, 2007
  3. Jeff KingAug 4, 2007
  4. Junio C HamanoAug 4, 2007
  5. Jeff KingAug 4, 2007
  6. Junio C HamanoAug 4, 2007
  7. Jeff KingAug 5, 2007
  8. Junio C HamanoAug 5, 2007
  9. Jeff KingAug 5, 2007

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.