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

Re: [PATCH] clone: Skip pack-*.keep files when cloning locally

From
Jens Lindström <jl@opera.com>
Date
Jul 3, 2013, 10:02 UTC
Message-ID
<CAEef6WxnRbPVFgZP4asQrvYGVTTbGzeQCwPJrwj4a-6k9vFcbQ@mail.gmail.com>
In-Reply-To
<7vip0ui757.fsf@alter.siamese.dyndns.org>
On Mon, Jul 1, 2013 at 6:20 PM, Junio C Hamano <gitster@pobox.com> wrote:
> I am not sure if we should care that deeply about them in the first
> place.
Fine by me; I don't really have a strong opinion on the matter.
> Besides, I think you can make a hardlink to a file that you cannot
> read.

Not always. The Linux kernel can at least be configured not to allow it. It seems this is enabled by default in at least Debian.

This restriction had me a bit confused when I was testing variations here; I expected all "access denied" failures to be because of .keep files, but in fact creating hardlinks to other files (.idx and .pack) failed too, even though they were readable. This caused "git clone --local" to fail, while "git clone" succeeded after falling back to copying instead of linking.

Previous: Junio C HamanoNext: Junio C Hamano
Message 6 of 8 in “clone: Skip pack-*.keep files when cloning locally”
  1. clone: Skip pack-*.keep files when cloning locallyJens Lindstrom, Jun 28, 2013
  2. Junio C HamanoJun 28, 2013
  3. Junio C HamanoJun 28, 2013
  4. Jens LindströmJul 1, 2013
  5. Junio C HamanoJul 1, 2013
  6. Jens LindströmJul 3, 2013
  7. Junio C HamanoJul 3, 2013
  8. Jens LindströmJul 3, 2013

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.