2

WindowsServer2003のgit/gitoliteで問題が発生しています(ただし、OSが問題の原因ではないと思われます)。

私がこれを行う場合:

git clone git@server:test.git

クローンを作成できません:

Cloning into test...
git@server's password:
fatal: 'test.git' does not appear to be a git repository
fatal: The remote end hung up unexpectedly

私がこれを行う場合:

git clone git@server:repositories/test.git

クローンを作成することはできますが、コミットすることはできません。

git@server's password:
Counting objects: 3, done.
Writing objects: 100% (3/3), 229 bytes, done.
Total 3 (delta 0), reused 0 (delta 0)
remote: ENV GL_RC not set
remote: BEGIN failed--compilation aborted at hooks/update line 20.
remote: error: hook declined to update refs/heads/master
To git@dev.relocationmoverservices.com:repositories/test.git
 ! [remote rejected] master -> master (hook declined)
error: failed to push some refs to 'git@server:repositories/test.git'

.gitolite.rcの$REPO_BASEを見ると、次のように表示されます。

# ------------------------------------------------------------------------------
# variables that should NOT be changed after the install step completes
# ------------------------------------------------------------------------------
$REPO_BASE="repositories";

誰かがここで何をすべきか教えてもらえますか?gitoliteを再インストールしますか?変数を変更しますか?これが問題の原因ではありませんか?

4

1 に答える 1

1

ジョシュ、

使用している構文は、リモート gitolite セットアップを実行していないユーザー専用です。(このため、gitolite のドキュメントにある別の管理者設定を使用することをお勧めします) 管理者ユーザーのリポジトリを複製するには、git clone git@gitolite:repot.git 構文を使用する必要があります。リモートを追加するときにもその構文を使用する必要がありますが、それはユーザーに対してのみ機能します。

繰り返しますが、これは管理/サービス ベースのセットアップを使用することで回避できます。http://sitaramc.github.com/gitolite/doc/1-INSTALL.html#_install_methods_and_deciding_which_one_to_use

于 2011-04-26T13:49:21.747 に答える