git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Re: Object Permissions - trying git-init --shared=group parameters
@ 2008-02-21 22:06 Pete/Piet Delaney
  2008-02-21 22:16 ` Junio C Hamano
  0 siblings, 1 reply; 2+ messages in thread
From: Pete/Piet Delaney @ 2008-02-21 22:06 UTC (permalink / raw)
  To: Git Mailing List, piet.delaney, Piet Delaney

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Junio C Hamano wrote:
| Pete/Piet Delaney <pete@bluelane.com> writes:
|
|> I've been trying to us the git repo in a
|> centralize pull, push model where the
|> developers pull the repo, checkout a
|> branch, commit and then push back to the
|> common repo.
|>
|> Problem is that the objects get set with
|> the ownership of the user (at least when
|> pulling with this format:
|>
|> ~    git clone git:/home/git/blux
|>
|> Amy suggestions on how to do this?
|
| "man git-config" and look for core.sharedrepository, perhaps?

That's kinda what I'm trying. I did a git-init --shared=group
and found that it set:


	[core]
~        	repositoryformatversion = 0
~        	filemode = true
~        	bare = false
~        	logallrefupdates = true
~        	sharedrepository = 1

	[receive]
~        	denyNonFastforwards = true

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.

- -piet

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.7 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFHvfXuJICwm/rv3hoRAl+PAJ9M/dRAuWRjs8gUvq1w3JqeH8/tNgCdFbto
iaqrDyOefH4zTEK8Zzximu4=
=xJM3
-----END PGP SIGNATURE-----

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Object Permissions - trying git-init --shared=group parameters
  2008-02-21 22:06 Object Permissions - trying git-init --shared=group parameters Pete/Piet Delaney
@ 2008-02-21 22:16 ` Junio C Hamano
  0 siblings, 0 replies; 2+ messages in thread
From: Junio C Hamano @ 2008-02-21 22:16 UTC (permalink / raw)
  To: pete; +Cc: Git Mailing List, piet.delaney, Piet Delaney

Pete/Piet Delaney <pete@bluelane.com> writes:

> 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

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2008-02-21 22:17 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-02-21 22:06 Object Permissions - trying git-init --shared=group parameters Pete/Piet Delaney
2008-02-21 22:16 ` Junio C Hamano

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).