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

Re: git-clone file permissions and cpio

From
Paolo Bonzini <bonzini@gnu.org>
Date
Apr 21, 2008, 11:41 UTC
Message-ID
<480C7D82.9000602@gnu.org>
In-Reply-To
<alpine.BSO.1.10.0804210911170.21918@zrgural.vwaro.pbz>
Show 5 quoted lines
> I got some kind of working behaviour with the diff below, which stops 
> cpio 'fixing' the file permissions (only on the directories). But it 
> seems the underlying cause is cpio trying to copy file permissions which 
> it would be better off not doing in this case (and which there isn't a 
> flag to disable).

I don't think you want to have the setgid bit on files, only on directories, so your patch seems okay to me.

Paolo
Previous: Mark HillsNext: Mark Hills
Message 2 of 3 in “git-clone file permissions and cpio”
  1. Mark HillsApr 21, 2008
  2. Paolo BonziniApr 21, 2008
  3. Mark HillsMay 4, 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.