git push origin由fallthru DENIED,hook拒绝:gitolite

时间:2012-05-03 10:06:36

标签: git gitolite git-push

我在使用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?

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

是否有什么东西可能会丢失?
有人遇到过这个吗?

2 个答案:

答案 0 :(得分:16)

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

  

RW +,允许“push -f”或ref删除(即销毁信息)

此外,如果您使用V2,则可能适用:

  

RWD和RW + D,用于ref删除。一旦你在repo中使用它,普通的RW +就不能再删除ref了。它只能倒带

来源:

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

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

答案 1 :(得分:-5)

这对我有用,什么都没有:

cd ~gitlab/gitlab
sudo -u gitlab -H bundle exec rake gitlab:gitolite:update_keys RAILS_ENV=production
sudo -u gitlab -H bundle exec rake gitlab:gitolite:update_repos RAILS_ENV=production