我在 Windows Server 2003 上的 git/gitolite 遇到了一些问题(尽管我怀疑操作系统不是问题的根源。)
如果我这样做:
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?改变变量?这不是问题的原因吗?