I am having a problem pushing with git
using Gitolite.
When I try this:
我在使用Gitolite推進git時遇到了問題。當我試試這個:
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:
我已經給了group deploy(用戶michael是其中的一員)權限來刪除Gitolite配置中的分支:
@deply = michael
repo repos
RWD = @deply
I have seen this post: "Unable to push in Git. Why?"
我看過這篇文章:“無法推入Git。”為什么?”
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?
也許我缺少什么?有人見過這個嗎?
16
You need RW+
permission for ref changes/deletion
對於ref更改/刪除需要RW+權限
RW+, for "push -f" or ref deletion allowed (i.e., destroy information)
RW+,用於“push -f”或ref刪除(即,破壞信息)
Also, if you're using V2 this may apply:
同樣,如果你使用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
RWD和RW+D,用於ref刪除。一旦你在回購中使用這個,一個普通的RW+就不能再刪除一個ref;它只能倒帶
Sources:
來源:
http://sitaramc.github.com/gitolite/g2/conf.html
http://sitaramc.github.com/gitolite/g2/conf.html
http://sitaramc.github.com/gitolite/rules.html
http://sitaramc.github.com/gitolite/rules.html
-5
This worked for me, when nothing else would:
這對我起了作用,而其他任何東西都不起作用:
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
本站翻译的文章,版权归属于本站,未经许可禁止转摘,转摘请注明本文地址:https://www.itdaan.com/blog/2012/05/03/724f8302931a72ceca177f28bf43a727.html。