我们使用的镜像存储库中的某些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)
...