diff options
author | Sitaram Chamarty <sitaram@atc.tcs.com> | 2017-09-20 17:47:59 +0530 |
---|---|---|
committer | Sitaram Chamarty <sitaram@atc.tcs.com> | 2017-09-26 20:27:44 +0530 |
commit | 3272a6bec662f9514c58f63dde242c8a2533c9de (patch) | |
tree | e51266c6db601736f087eb4058fb999a7f240eee | |
parent | optimise the single-repo POST_CREATE cases a bit... (diff) | |
download | gitolite-gentoo-3272a6bec662f9514c58f63dde242c8a2533c9de.tar.gz gitolite-gentoo-3272a6bec662f9514c58f63dde242c8a2533c9de.tar.bz2 gitolite-gentoo-3272a6bec662f9514c58f63dde242c8a2533c9de.zip |
set a repo's group membership(s) in 'gl-repo-groups'...
...a la 'gl-perms' for role memberships
-rw-r--r-- | src/lib/Gitolite/Conf/Load.pm | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/lib/Gitolite/Conf/Load.pm b/src/lib/Gitolite/Conf/Load.pm index 4f42cdc..d0cd985 100644 --- a/src/lib/Gitolite/Conf/Load.pm +++ b/src/lib/Gitolite/Conf/Load.pm @@ -384,6 +384,13 @@ sub memberships { push @ret, $i; } } + + # add in any group names explicitly given in (GIT_DIR)/gl-repo-groups + push @ret, + map { s/^\@?/\@/; $_ } + grep { ! /[^\w@-]/ } + split (' ', slurp("$ENV{GL_REPO_BASE}/$base.git/gl-repo-groups")) + if -f "$ENV{GL_REPO_BASE}/$base.git/gl-repo-groups"; } push @ret, @{ $groups{$base} } if exists $groups{$base}; |