Re: [git-users] access control

2010-03-09 Thread Michael P. Soulier
On Tue, Mar 9, 2010 at 8:00 AM, Dennis Schmidt
 wrote:
> Hello,
>
> i have a bare git repository on an external server you access via SSH.
> What I would want to do now is limiting access for some users to a
> specific branch in this repository. Is this somehow possible?

You could probably do that via a hook, but that seems like the wrong
solution. I would simply clone the repo and use the cloned repo as
your separate branch.

Not that it matters much, you can always allow everyone to pull
everything, and only pull from them to the desired branch.

Are you trying to control read access, or write access, or both?

Mike
-- 
Michael P. Soulier 
"Any intelligent fool can make things bigger and more complex... It takes a
touch of genius - and a lot of courage to move in the opposite direction."
--Albert Einstein

-- 
You received this message because you are subscribed to the Google Groups "Git 
for human beings" group.
To post to this group, send email to git-us...@googlegroups.com.
To unsubscribe from this group, send email to 
git-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/git-users?hl=en.



[git-users] access control

2010-03-09 Thread Dennis Schmidt
Hello,

i have a bare git repository on an external server you access via SSH.
What I would want to do now is limiting access for some users to a
specific branch in this repository. Is this somehow possible?

If this is not possible directly however (what I suppose), can you
link several git repos together easily? What I have in mind is
creating a new repository which only holds the branches I want the
other users having access to. Then I would link my original repository
to this one as well as another newly created repo where the new users
have full acces to. Sounds complicated. So this is what it looks like
in my mind:

[MY_LOCAL_CLONE] > [ORIGINAL_BARE_REPO] >
{REPO_WITH_SOME_BRANCH} < {NEW_USER_REPO} <
{USERS_LOCAL_CLONES}

So all the repositories in {} would be new ones and in [] are the
already existing ones. Would this work as I wanted it to?

thanks a lot,

Dennis Schmidt

-- 
You received this message because you are subscribed to the Google Groups "Git 
for human beings" group.
To post to this group, send email to git-us...@googlegroups.com.
To unsubscribe from this group, send email to 
git-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/git-users?hl=en.