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

Re: Permissions of objects within shared repo

From
Brandon Casey <casey@nrlssc.navy.mil>
Date
May 1, 2009, 13:58 UTC
Message-ID
<b_0Yr2BIOq-ZcTAxvkSlKVaJjU1_GJhkRLKGCkG7Uj5ft73JWFjWlA@cipher.nrlssc.navy.mil>
In-Reply-To
<799406d60904301849t1e77e81bgc6d58ecd0e9d6b7d@mail.gmail.com>
Adam Mercer wrote:
Show 5 quoted lines
> [ram@g3 ~]$ cd /path/to/repo.git/objects/00/
> [ram@g3 00]$ ls -l
> total 43
> -r--r--r--+ 1 user1           1000  2729 Apr 19 13:13
> 028ade623678384fca34c51e0ea3ae91b8a50d
> will this cause a problem when git gc --auto decides its time to put
> these loose objects into a pack, i.e. will they be able to be removed?

On POSIX filesystems it's the _directory_ permissions which control whether or not the directory contents can be deleted.

Do:
   ls -ld /path/to/repo.git/objects/00/

and you should see that the group has write permission to this directory which will allow group members to delete files residing in the directory.

-brandon
Previous: Adam Mercer
Message 4 of 4 in “Permissions of objects within shared repo”
  1. Adam MercerMay 1, 2009
  2. Johannes SchindelinMay 1, 2009
  3. Adam MercerMay 1, 2009
  4. Brandon CaseyMay 1, 2009

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.