Issues with an existing repo copied into gitlab
Created by: kelvinlouis
Hi guys,
A couple of weeks ago, I created a simple GIT server. For every developer a system user was created. SSH-Keys were generated as well to fasten the whole process. A user therefore was able to clone a repository like this: [email protected]:/repos/orange.git
.
That's it. As you can see, I pretty much followed the basic installation steps, declared in the GIT Documentation.
Two days ago I discovered GitLab and thought it would be a nice addition. So I installed it. I configured GitLab to use /repos/
as the repository directory, because we were already using it. After the installation, I created a project for the already existing repository. Surprisingly, commits done by my team showed up! Their names and email addresses were being displayed, but weren't linked to the users I created after the installation. This kind of made sense.
I tried to clone the repository via [email protected]:orange.git
, but for some reason I always got this message: warning: You appear to have cloned an empty repository
.
When I clone the repo with my system users it works: [email protected]:/repos/orange.git
.
Why is this?
I ran ``sudo -u gitlab -H bundle exec rake gitlab:check RAILS_ENV=production` to see what was going on. Everything except this part looked good:
Repo base access is drwxrws---? ... yes
Can clone gitolite-admin? ... yes
Can commit to gitolite-admin? ... yes
post-receive hook exists? ... yes
post-receive hook up-to-date? ... yes
post-receive hooks in repos are links: ...
orange... ok
Git config in repos: ...
orange... wrong or missing
Try fixing it:
sudo -u gitlab -H bundle exec rake gitlab:gitolite:update_repos RAILS_ENV=production
For more information see:
doc/raketasks/maintenance.md
Please fix the error above and rerun the checks.
I tried running sudo -u gitlab -H bundle exec rake gitlab:gitolite:update_repos RAILS_ENV=production
, but that didn't help. Any idea why I can't clone it?
conf/gitonline.conf:
repo orange
RW+ = firstname_lastname_domain_com_1362511052
Is it because my orange.git/
repo is missing a gl-conf
file?
Some more info:
$ ssh [email protected] info
hello firstname_lastname_domain_com_1362511052, this is git@gitserver running gitolite3
v3.2-gitlab-patched-0-g2d29cf7 on git 1.7.9.5
R W uname/testing
R W orange
R W test
R W testing
WARNING: split conf not set, gl-conf present for 'uname/testing'
WARNING: split conf not set, gl-conf present for 'test'
I created a test project inside gitlab and deleted it. I also ran both tasks listed in cleanup. Looks like gitoline doesn't remove the repos of the deleted projects. Is this normal?
Please let me know, if you have any ideas. I'm kind of helpless. I tried many things, but I'm kind of lost now.
Greets Kelvin