diff options
author | 2018-08-04 00:07:02 +0530 | |
---|---|---|
committer | 2018-08-04 06:24:17 +0530 | |
commit | 295c217480c463b8292aca0d884ea35391241312 (patch) | |
tree | c56cd8ee2de0b9c537cb2be2f7d8c0a2ec229c6c /src | |
parent | VREF/NAME needs special handling in expand-deny-messages (diff) | |
download | gitolite-gentoo-295c217480c463b8292aca0d884ea35391241312.tar.gz gitolite-gentoo-295c217480c463b8292aca0d884ea35391241312.tar.bz2 gitolite-gentoo-295c217480c463b8292aca0d884ea35391241312.zip |
fix 'C' and 'M' tests in 'gitolite access'...
C was being handled incorrectly, while M was not even considered (and
would behave as if MERGE_CHECK was set)
thanks to Björn Kautler
Diffstat (limited to 'src')
-rwxr-xr-x | src/commands/access | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/commands/access b/src/commands/access index f02e533..8e85966 100755 --- a/src/commands/access +++ b/src/commands/access @@ -85,8 +85,9 @@ while (<>) { sub adjust_aa { my ($repo, $aa) = @_; - $aa = '+' if $aa eq 'C' and not option($repo, 'CREATE_IS_C'); + $aa = 'W' if $aa eq 'C' and not option($repo, 'CREATE_IS_C'); $aa = '+' if $aa eq 'D' and not option($repo, 'DELETE_IS_D'); + $aa = 'W' if $aa eq 'M' and not option($repo, 'MERGE_CHECK'); return $aa; } |