aboutsummaryrefslogtreecommitdiff
path: root/lib/GitACL.pm
diff options
context:
space:
mode:
Diffstat (limited to 'lib/GitACL.pm')
-rw-r--r--lib/GitACL.pm8
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/GitACL.pm b/lib/GitACL.pm
index 51024ac..57b38b8 100644
--- a/lib/GitACL.pm
+++ b/lib/GitACL.pm
@@ -40,7 +40,7 @@ sub logmsg($$$;$) {
40 my $loc = shift; 40 my $loc = shift;
41 my $fd; 41 my $fd;
42 42
43 open($fd, $self->logfile); 43 open($fd, $self->{logfile});
44 if ($loc) { 44 if ($loc) {
45 print $fd "$status:$loc: $message\n"; 45 print $fd "$status:$loc: $message\n";
46 } else { 46 } else {
@@ -54,7 +54,7 @@ sub deny($$;$) {
54 54
55 $self->logmsg("DENY", 55 $self->logmsg("DENY",
56 "$self->{project_name}:$self->{user_name}:". 56 "$self->{project_name}:$self->{user_name}:".
57 "opstr{$self->{op}}:$self->{ref}:$self->{old}:$self->{new}: $msg", 57 "$opstr{$self->{op}}:$self->{ref}:$self->{old}:$self->{new}: $msg",
58 $loc); 58 $loc);
59 59
60 $self->debug(1, "denied by $loc") if $loc; 60 $self->debug(1, "denied by $loc") if $loc;
@@ -176,8 +176,8 @@ sub new {
176 } else { 176 } else {
177 $obj->{logfile} = git_value('config', 'hooks.acllog'); 177 $obj->{logfile} = git_value('config', 'hooks.acllog');
178 } 178 }
179 if ($obj->{logfile} && $obj->logfile !~ /[>|]/) { 179 if ($obj->{logfile} && $obj->{logfile} !~ /[>|]/) {
180 $obj->{logfile} = ">>${obj->logfile}"; 180 $obj->{logfile} = ">>$obj->{logfile}";
181 } 181 }
182 182
183 if (defined($args{quiet})) { 183 if (defined($args{quiet})) {

Return to:

Send suggestions and report system problems to the System administrator.