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

Re: [PATCH] Be more careful with objects directory permissions on clone

From
Johannes Sixt <j.sixt@viscovery.net>
Date
May 6, 2008, 08:08 UTC
Message-ID
<4820121A.9090606@viscovery.net>
In-Reply-To
<fvp14f$8v0$1@ger.gmane.org>
Jakub Narebski schrieb:
Show 10 quoted lines
> Mark Hills wrote:
> 
>> -               find objects -depth -print | cpio $cpio_quiet_flag -pumd$l "$GIT_DIR/" || \
>> +               # Create dirs using umask and permissions and destination
>> +               find objects -type d -print | (cd "$GIT_DIR" && xargs mkdir -p) &&
>> +               # Copy existing 0444 permissions on content
>> +               find objects ! -type d -print | cpio $cpio_quiet_flag -pumd$l "$GIT_DIR/" || \
> 
> By the way, it is important that previous version had -depth, and
> proposed one doesn't? Was it about creating directories before files?

-depth means that directory names are listed *after* their content. Consequently, it was about setting modification times and permissions on directories *after* all of their content is created at the destination.

The intent of the new version is to not copy permissions of directories; and since the modification times don't matter, the absence of -depth is ok.

-- Hannes
Previous: Jakub Narebski
Message 10 of 10 in “Be more careful with objects directory permissions on clone”
  1. Be more careful with objects directory permissions on cloneMark Hills, May 4, 2008
  2. Johannes SixtMay 5, 2008
  3. Mark HillsMay 5, 2008
  4. Johannes SixtMay 5, 2008
  5. Mark HillsMay 5, 2008
  6. Johannes SixtMay 5, 2008
  7. Mark HillsMay 5, 2008
  8. Junio C HamanoMay 6, 2008
  9. Jakub NarebskiMay 6, 2008
  10. Johannes SixtMay 6, 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.