ここで説明されているように、裸の 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!
回避策として、空のプロジェクト フォルダー (インポート トライアルで作成されたもの) をベア リポジトリに置き換えます。その後、ツリーを作成してリモートからレポを複製すると、次のエラーが発生します。
$ 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 には通常のリポジトリ (非ベア) が必要ですか? または、私の問題は何ですか?