summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorSitaram Chamarty <sitaramc@gmail.com>2018-08-04 00:07:02 +0530
committerSitaram Chamarty <sitaramc@gmail.com>2018-08-04 06:24:17 +0530
commit295c217480c463b8292aca0d884ea35391241312 (patch)
treec56cd8ee2de0b9c537cb2be2f7d8c0a2ec229c6c /src
parent29d5bb7a92ea0a22fa35077a5c4ca6af789ce117 (diff)
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-xsrc/commands/access3
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;
}