当我使用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>