2011-04-26 58 views
2

我有一些麻烦,在Windows Server 2003上的git/gitolite提交无法复制与gitolite

如果我这样做(虽然我怀疑OS不是问题的根源。):

git clone [email protected]:test.git 

我不能克隆:

Cloning into test... 
[email protected]'s password: 
fatal: 'test.git' does not appear to be a git repository 
fatal: The remote end hung up unexpectedly 

如果我这样做:

git clone [email protected]:repositories/test.git 

我可以克隆,但我不能承诺:

[email protected]'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 [email protected]:repositories/test.git 
! [remote rejected] master -> master (hook declined) 
error: failed to push some refs to '[email protected]:repositories/test.git' 

如果我在.gitolite.rc看$ REPO_BASE,我看到:

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

谁能告诉我该怎么在这里做?重新安装gitolite?更改变量?这不是问题的原因吗?

回答

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