git push origin被fallthru拒绝,hook下降:gitolite [英] git push origin DENIED by fallthru, hook declined: gitolite

查看:279
本文介绍了git push origin被fallthru拒绝,hook下降:gitolite的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

使用Gitolite推送 git 时出现问题。

当我尝试这种方法时:

  git push origin:refs / tags / deployment 

我得到这个错误:

  remote:D NAME / install.py repos michael DENIED by fallthru 
remote:error :hook拒绝更新refs / tags / deployment
到gitolite @ admin:repos
! [远程拒绝]部署(钩拒绝)
错误:未能推送一些文件到'gitolite @ admin:repos'

我已经给了 部署 [其中用户 michael code $ $ p $ @deply = code $是$成员的权限, michael

repo repos

RWD = @deply

我看过这篇文章:无法推入Git。为什么?



但我没有使用任何我知道的钩子,也找不到可能涉及的其他任何东西。



有没有什么可能缺失?

有人遇到过这个吗?

解决方案

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


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

另外,重新使用V2,这可能适用:


和RW + D,用于删除。一旦你在回购中使用它,一个正常的RW +不能再删除一个ref;它只能倒带


来源:

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



http://sitaramc.github.com/gitolite/rules。 HTML


I am having a problem pushing with git using Gitolite.
When I try this:

git push origin :refs/tags/deployment

I get this error:

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'

I have given the group deploy [of which the user michael is a member of] permission to delete branches in the Gitolite config:

@deply  =   michael

repo  repos

        RWD    =   @deply

I have seen this post: "Unable to push in Git. Why?"

But I am not using any hooks that I am aware of and cannot find anything thing else that might relate.

Is there something im missing perhaps?
Has anybody come across this?

解决方案

You need RW+ permission for ref changes/deletion

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

Also, if you're using V2 this may apply:

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

Sources:

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

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

这篇关于git push origin被fallthru拒绝,hook下降:gitolite的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆