Hello,

I'd like to upgrade from git + gitweb to GitLab.

I installed gitlab-ce-7.10.1~omnibus.2-1.x86_64 on CentOS 6.6 (latest 
version per GitLab.com instructions)

In the GitLab UI, under New Project, the Import Project From pane does not 
allow me to put in the git URL (git://) of my repo.  I don't believe gitweb 
will allow me to clone my repo over HTTPS.

I found this 
page, 
https://github.com/gitlabhq/gitlabhq/wiki/Import-existing-repositories-into-GitLab,
 
and tried to follow the simple instructions:

GitLab can create projects for your repos automatically

   1. Copy *bare* repositories to /home/git/repositories
   2. Run bundle exec rake gitlab:import:repos RAILS_ENV=production
   3. PROFIT



/home/git/repositories did not exist, so I created a "repositories" 
directory in git's home directory:


$ grep git: /etc/passwd
git:x:494:491::/var/opt/gitlab:/bin/sh
$


I put my repository in /var/opt/gitlab/repositires/my_repo.git

I tried to run the command in #2 and that's when things went off the rails 
for me.

bundle: command not found
yum install bundle: no such package
gem install bundle:  gem: command not found

I was doing the above commands as root.

After reading some posts on this list, I became the "git" user and tried to 
run the bundle command:

$ id
uid=494(git) gid=491(git) groups=491(git)  
$ bundle exec rake gitlab:import:repos RAILS_ENV=production
sh: bundle: command not found
$ gem install bundle
sh: gem: command not found
$ 


I'm new to git, GitLab AND Ruby.  I was hoping the OmniBus package would 
provide everything needed to get started.

$ find / -name gem 2>/dev/null
/opt/gitlab/embedded/service/gem
/opt/gitlab/embedded/bin/gem
/usr/share/locale/gem
$ 


Ok, let's use gem to install bundle:


$ /opt/gitlab/embedded/bin/gem install bundle
Fetching: bundle-0.0.1.gem (100%)
ERROR:  While executing gem ... (Errno::ENOENT)
    No such file or directory @ rb_sysopen - 
/var/opt/gitlab/.gem/ruby/2.1.0/cache/bundle-0.0.1.gem
$ 


What am I doing wrong?  

I'm trying to import my existing git repo from git+gitweb to GitLab.

Yours,
Aleksey

-- 
You received this message because you are subscribed to the Google Groups 
"GitLab" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to gitlabhq+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/gitlabhq/43aab153-9ba5-4ba6-a364-f353389e108d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to