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

Re: Object Permissions - trying git-init --shared=group parameters

From
Junio C Hamano <gitster@pobox.com>
Date
Feb 21, 2008, 22:16 UTC
Message-ID
<7vzlturm57.fsf@gitster.siamese.dyndns.org>
In-Reply-To
<47BDF5EF.9030707@bluelane.com>
Pete/Piet Delaney <pete@bluelane.com> writes:
Show 10 quoted lines
> So I looked int the meaning of these config prams and
> thought I tried adding:
>
> 	sharedrepository = 1
>
> 	denyNonFastforwards = true
>
> to the bare repo on the git server. I'm not sure if
> existing repo that have been cloned will have to be
> updated, hopefully not.

You would at least make sure the directories there that was created while the repository was misconfigured can be writable by group members (i.e. permissions no stricter than drwxrws---) and owned by the group. Something like

	mode=2775 ;# 2770 if closed to non-members
	chgrp -R $group $GIT_DIR
	find $GIT_DIR -type d -print0 | xargs -0 chmod $mode
Previous: Pete/Piet Delaney
Message 2 of 2 in “Re: Object Permissions - trying git-init --shared=group parameters”
  1. Pete/Piet DelaneyFeb 21, 2008
  2. Junio C HamanoFeb 21, 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.