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

Re: [PATCH] shared repository settings enhancement.

From
Junio C Hamano <junkio@cox.net>
Date
Jun 10, 2006, 03:49 UTC
Message-ID
<7v8xo5lleo.fsf@assigned-by-dhcp.cox.net>
In-Reply-To
<Pine.LNX.4.64.0606091743410.5498@g5.osdl.org>
Linus Torvalds <torvalds@osdl.org> writes:
Show 17 quoted lines
> On Fri, 9 Jun 2006, Junio C Hamano wrote:
>>
>> This lets you say:
>> 
>> 	[core]
>> 		sharedrepository = 075
>
> I really think it's better to express this as some more traditional 
> number.
>
> I had to think about what 075 meant, while saying
>
> 	[core]
> 		sharedrepository = 0644
>
> just makes sense more or less automatically (and yes, for directories, the 
> read bit should obviously be expanded as an execute bit).

Or probably use the umask notation, 007 for traditional shared repositories and 002 for gitweb exported ones. With your notation, people would start wondering what the distinction between 0755, 0644, and even 0254 is (there isn't any).

Having said that, I do not think the distinction is that important; I would rather make the core.sharedrepository = true to mean an equivalent of "chmod go+rX" (it does "chmod g+rX" currently).

Previous: Jakub NarebskiNext: Linus Torvalds
Message 8 of 14 in “RE: Git-daemon messing up permissions for gitweb”
  1. Post, Mark KJun 9, 2006
  2. Junio C HamanoJun 9, 2006
  3. Retire SIMPLE_*** stuff.Junio C Hamano, Jun 10, 2006
  4. Built-in git-get-tar-commit-id (was: [PATCH/RFC] Retire SIMPLE_*** stuff.)Rene Scharfe, Jun 10, 2006
  5. shared repository settings enhancement.Junio C Hamano, Jun 10, 2006
  6. Linus TorvaldsJun 10, 2006
  7. Jakub NarebskiJun 10, 2006
  8. Junio C HamanoJun 10, 2006
  9. Linus TorvaldsJun 10, 2006
  10. Junio C HamanoJun 10, 2006
  11. Linus TorvaldsJun 10, 2006
  12. Alex RiesenJun 10, 2006
  13. Linus TorvaldsJun 10, 2006
  14. Alex RiesenJun 10, 2006

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.