diff options
author | Sitaram Chamarty <sitaram@atc.tcs.com> | 2010-03-18 22:04:22 +0530 |
---|---|---|
committer | Sitaram Chamarty <sitaram@atc.tcs.com> | 2010-03-18 22:06:25 +0530 |
commit | bad0723974195331b85e9993b3d541cb0a23da39 (patch) | |
tree | 032fd5ba923744754d6e2df6c44ead5a1a05ddf4 | |
parent | gl-setup: dash-compat (diff) | |
download | gitolite-gentoo-bad0723974195331b85e9993b3d541cb0a23da39.tar.gz gitolite-gentoo-bad0723974195331b85e9993b3d541cb0a23da39.tar.bz2 gitolite-gentoo-bad0723974195331b85e9993b3d541cb0a23da39.zip |
allow @all to be used as a "user" in setperms
-rw-r--r-- | src/gitolite.pm | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gitolite.pm b/src/gitolite.pm index 061e57c..9c108a5 100644 --- a/src/gitolite.pm +++ b/src/gitolite.pm @@ -174,8 +174,8 @@ sub repo_rights my $fh = wrap_open("<", "$repo_base_abs/$repo.git/gl-perms"); my $perms = join ("", <$fh>); if ($perms) { - $r = $user if $perms =~ /^\s*R(?=\s).*\s$user(\s|$)/m; - $w = $user if $perms =~ /^\s*RW(?=\s).*\s$user(\s|$)/m; + $r = $user if $perms =~ /^\s*R(?=\s).*\s(\@all|$user)(\s|$)/m; + $w = $user if $perms =~ /^\s*RW(?=\s).*\s(\@all|$user)(\s|$)/m; } } |