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

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

From
Junio C Hamano <gitster@pobox.com>
Date
Jun 28, 2013, 18:38 UTC
Message-ID
<7vvc4ynkrx.fsf@alter.siamese.dyndns.org>
In-Reply-To
<1372430538-19216-1-git-send-email-jl@opera.com>
Jens Lindstrom <jl@opera.com> writes:
Hmph.  I am of two minds here.
> The pack-*.keep files are temporary, and serve no purpose in the
> clone.

They are not temporary, actually. A user can deliberatey create a "keep" marker after packing with a good set of parameters, so that the resulting pack will be kept, instead of letting a later repack (with faster set of parameters) remove and replace it with less optimal results.

Show 5 quoted lines
> Worse, though, they are created with access bits 0600, so if the
> user trying to clone the repository is different from the user that
> caused the pack-*.keep file to be created, the clone will likely
> fail due to not being allowed to read (and thus copy) the file in
> the first place.

I am perfectly fine with a change that allows a local clone to skip and not error out when such a "keep" marker cannot be copied, I do not know if it is a good idea to unconditionally skip and not even attempt to copy it.

Previous: Jens LindstromNext: Junio C Hamano
Message 2 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.