2016-05-14 13 views
1

私は自分のサーバーにgitoliteを設定できました。だから私は経由してやっている:GitoliteはRepoに変更をプッシュできません

git push amazon master 

そして私は、次の応答を取得:

W access for home/git/repositories/webtags DENIED to git-admin 
(Or there may be no repository at the given path. Did you spell it correctly?) 
fatal: Could not read from remote repository. 

Please make sure you have the correct access rights 
and the repository exists. 

マイgitoliteの設定は

repo gitolite-admin 
     RW+  = git-admin 

repo testing 
     RW+  = @all 

repo webtags 
    RW+ = pc_magas git-admin 

ですそして、私のリモコンは、以下のとおりです。

amazon mygitserver:/home/git/repositories/webtags.git (fetch) 
amazon mygitserver:/home/git/repositories/webtags.git (push) 
openshift ssh://[email protected]/~/git/webtag.git/ (fetch) 
openshift ssh://[email protected]/~/git/webtag.git/ (push) 
origin [email protected]:pc-magas/webtags.git (fetch) 
origin [email protected]:pc-magas/webtags.git (push) 

mygitserverは私のサーバのエイリアスですc .ssh/configで設定されています:

Host mygitserver 
Hostname ec2-52-30-197-137.eu-west-1.compute.amazonaws.com 
IdentityFile ~/id_rsa.pub 
User git 

Webtagsリポジトリをプッシュする方法は分かりますか。

注:pc_magas git-adminにはいずれも自分のキーがあります。

答えて

1

あなたはレポのための完全なパスを使用して推進している:/home/git/repositories/webtags.git
これは"bypassing gitolite" issuesの一つです。

その管理webtags.gitレポを参照するためにgitoliteしたい場合は、URLは次のようになります。

amazon mygitserver:webtags.git (fetch) 
amazon mygitserver:webtags.git (push) 

意味:

cd /path/to/my/repo 
git set-url amazon mygitserver:webtags.git 

その後gitoliteが実際/home/git/repositories/webtags.gitを探します。

関連する問題