[git] gitoliteの設定ではまってる
gitoliteの設定がうまくいかず悩んでいる。
gitoliteのpathの設定がうまくいかず、下記のようにアクセス出来ない。
$ git clone gituser@server.com:gitolite-admin.git Cloning into gitolite-admin... fatal: 'gitolite-admin.git' does not appear to be a git repository fatal: The remote end hung up unexpectedly
これならアクセスできる
$ git clone gituser@server.com:repositories/gitolite-admin.git
ただし、gitoliteの作り上、フルパスで指定して、cloneできても、pushができないようになっている。そのへんのことは下記の公式ドキュメントに書いてある。
http://sitaramc.github.com/gitolite/doc/ssh-troubleshooting.html#_appendix_5_why_bypassing_gitolite_causes_a_problem
.gitolite.rcはデフォルトのまま。
$REPO_BASE="repositories";
これが効いてないのでアクセスできてないように思う。もう少し、ssh-troubleshooting読み込まなきゃいけないかなぁ。privateなgit serverが欲しくて、サクっと立てるはずだったのになぁ…。
追記:
解決しました。やはりssh-troubleshootingをよく読んで一つづつ潰していくのが良いみたいです。