当我使用git push origin HEAD:refs/for/branch_name
时,它正常工作。但我使用git push origin HEAD:branch_name
,它可以绕过审阅者并直接将代码推送到服务器。有点奇怪!它应显示:gerrit 禁止的。其他人可以帮助我吗?
我的Apache2 httpd.conf 如下所示
<VirtualHost *>
ServerName localhost
ProxyRequests Off
ProxyVia Off
ProxyPreserveHost On
<Proxy *>
Order deny,allow
Allow from all
</Proxy>
<Location /login/>
AuthType Basic
AuthName "Gerrit Code Review"
AuthBasicProvider file
AuthUserFile /home/kk/gerrit/server/etc/passwords
Require valid-user
</Location>
ProxyPass / http://10.10.68.224:9091/
ProxyPassReverse / http://10.10.68.224:9091/
</VirtualHost>