gpt4 book ai didi

git push origin 被 fallthru 拒绝,hook 拒绝 : gitolite

转载 作者:IT王子 更新时间:2023-10-29 00:37:57 26 4
gpt4 key购买 nike

我在使用 Gitolite 推送 git 时遇到问题。
当我尝试这个时:

git push origin :refs/tags/deployment

我收到这个错误:

remote: D NAME/install.py repos michael DENIED by fallthru
remote: error: hook declined to update refs/tags/deployment
To gitolite@admin:repos
! [remote rejected] deployment (hook declined)
error: failed to push some refs to 'gitolite@admin:repos'

我已授予组 deploy [用户 michael 是其成员] 的权限删除 Gitolite 配置中的分支:

@deply  =   michael

repo repos

RWD = @deply

我看过这个帖子:“Unable to push in Git. Why?

但我没有使用任何我知道的钩子(Hook),也找不到任何其他可能相关的东西。

我是不是遗漏了什么?
有人遇到过这个吗?

最佳答案

您需要RW+ 权限才能更改/删除 ref

RW+, for "push -f" or ref deletion allowed (i.e., destroy information)

此外,如果您使用的是 V2,这可能适用:

RWD and RW+D, for ref deletion. Once you use this in a repo, a normal RW+ can no longer delete a ref; it can only rewind

来源:

http://sitaramc.github.com/gitolite/g2/conf.html

http://sitaramc.github.com/gitolite/rules.html

关于git push origin 被 fallthru 拒绝,hook 拒绝 : gitolite,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/10429201/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com