【发布时间】:2013-08-13 16:26:45
【问题描述】:
我按照here 的描述将我的裸 git 存储库导入 Gitlab,因为它未被识别为 git 存储库,但创建了一个 94K 大的“空”存储库(原始为 2.8GB 大):
$ bundle exec rake gitlab:import:repos RAILS_ENV=production
fatal: Not a git repository (or any of the parent directories): .git
Processing test.git
INFO: Sidekiq client using redis://localhost:6379 with options:namespace=>"resque:gitlab"}
* Created test (test.git)
Done!
作为一种解决方法,我将空项目文件夹(由导入试用创建)替换为我的裸仓库。之后我从远程克隆 repo 并得到以下错误:
$ git clone git@mydomain.com:...test.git
Cloning into 'test'
fatal: '...test.git' does not appear to be a git repository
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
但是 git 用户应该拥有所有需要的权限。 -也许我忽略了什么?
我的系统:RHEL6.3、Git 1.8.3.4、Gitlab5.3。
Gitlab 是否需要一个普通的仓库(非裸仓库)?或者我的问题可能是什么?
【问题讨论】:
标签: git import repository gitlab