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

git init permissions?

From
Ferry Huberts (Pelagic) <ferry.huberts@pelagic.nl>
Date
Apr 14, 2009, 18:09 UTC
Message-ID
<49E4D16E.9050500@pelagic.nl>
Hi list,
Maybe a silly question but I couldn't figure out the answer.
I'm looking at the git init --shared=group result and see:

drwxrwsr-x 7 ferry ferry 111 2009-04-14 19:51 . drwxrwxr-x 3 ferry ferry 17 2009-04-14 19:51 .. drwxrwxr-x 2 ferry ferry 6 2009-04-14 19:51 branches -rw-rw-r-- 1 ferry ferry 127 2009-04-14 19:51 config -rw-rw-r-- 1 ferry ferry 58 2009-04-14 19:51 description -rw-rw-r-- 1 ferry ferry 23 2009-04-14 19:51 HEAD drwxrwxr-x 2 ferry ferry 4.0K 2009-04-14 19:51 hooks drwxrwxr-x 2 ferry ferry 20 2009-04-14 19:51 info drwxrwsr-x 4 ferry ferry 28 2009-04-14 19:51 objects drwxrwsr-x 4 ferry ferry 29 2009-04-14 19:51 refs

Is there some kind of reason that the branches directory is not created with +s permissions?

I can understand it for the hooks and info directories since you can not push into those. You _can_ however push into branches and I would expect it to have +s too, like objects and refs.

Bug or my misunderstanding?
git version 1.6.0.6
Next: Jan Krüger
Message 1 of 6 in “git init permissions?”
  1. Ferry Huberts (Pelagic)Apr 14, 2009
  2. Jan KrügerApr 14, 2009
  3. Johan HerlandApr 14, 2009
  4. Ferry Huberts (Pelagic)Apr 14, 2009
  5. Todd ZullingerApr 15, 2009
  6. Ferry Huberts (Pelagic)Apr 23, 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.