![尝试 gitolite 镜像说“你应该先拉”](https://linux22.com/image/1445661/%E5%B0%9D%E8%AF%95%20gitolite%20%E9%95%9C%E5%83%8F%E8%AF%B4%E2%80%9C%E4%BD%A0%E5%BA%94%E8%AF%A5%E5%85%88%E6%8B%89%E2%80%9D.png)
我们使用的镜像存储库中的某些gitolite
现在出现错误:
% gitolite mirror push mirror-host repo/path
remote: error: denying non-fast-forward refs/heads/feature/FOO-XXX-bar (you should pull first)
...
! [remote rejected] feature/FOO-XXX-bar (non-fast-forward)
调用者gitolite
属于@admins
拥有以下RW+
权限的组:一切. 为什么工具不会倒带?
有什么建议吗?谢谢!
答案1
好吧,我明白了。无论出于什么原因,存储库副本上的 /config-files 包含以下子句:
[receive]
denyNonFastforwards = true
一旦我将其注释掉,我就可以运行mirror push
:
...
+ 5d7eb28...f0deef7 feature/FOO-XXXX-bar -> feaure/FOO-XXXX-bar (forced update)
...