Repository creation hook.

70 views
Skip to first unread message

gross

unread,
Sep 1, 2011, 10:37:05 AM9/1/11
to gito...@googlegroups.com
Hello all.

In my gitolite installation I use several system users for  different purposes. User git is for gitolite hosting, lighttpd is webserver (for gitweb and https access) and redmine for redmine project management. In this case I have to user acl to grant access for them to repos owned by git. So all works fine till I create new repo through gitolite-admin repo. New created repo has unusual mask (m:---) that forbids any access for others. Default acl is set to set mask m:r-x but it doesn't work. So I want to add repo creation hook to gitolite.pm. 
1) Is it neccessary only for me or I should make pull request? 
2) Is there any hook features in gitolite now (to do not reintervent the wheel)?

Best regards,
Konstantin Gribov aka gross.

Sitaram Chamarty

unread,
Sep 1, 2011, 10:52:58 AM9/1/11
to gross, gito...@googlegroups.com
On Thu, Sep 1, 2011 at 8:07 PM, gross <gro...@gmail.com> wrote:
> Hello all.
> In my gitolite installation I use several system users for  different
> purposes. User git is for gitolite hosting, lighttpd is webserver (for
> gitweb and https access) and redmine for redmine project management. In this
> case I have to user acl to grant access for them to repos owned by git. So
> all works fine till I create new repo through gitolite-admin repo. New
> created repo has unusual mask (m:---) that forbids any access for others.
> Default acl is set to set mask m:r-x but it doesn't work. So I want to add
> repo creation hook to gitolite.pm.

There already is a repo creation hook in gitolite, called gl-post-init.

Anyway what you want is not that. It is this:

http://sitaramc.github.com/gitolite/doc/3-faq-tips-etc.html#_umask_setting

gross

unread,
Sep 1, 2011, 12:26:21 PM9/1/11
to Sitaram Chamarty, gito...@googlegroups.com
Thanks. I've done what I want to do ,)

2011/9/1 Sitaram Chamarty <sita...@gmail.com>
Reply all
Reply to author
Forward
0 new messages