将现有的 git 存储库导入 Gitorious

将现有的 git 存储库导入 Gitorious

我正在尝试找出如何将现有的 git 存储库导入 Gitorious CE。我按照以下说明进行操作http://getgitorious.com/install-gitorious在 CentOS 6.5 机器上安装服务器。

我能找到的所有谷歌搜索结果都是 2010 年或 2011 年的。我找到的最好的是一个脚本http://www.pedro.kiefer.com.br/2011/02/from-cvs-to-git-to-gitorious。但是,尝试运行其脚本(将路径更改为“environment.rb”之后)出现以下错误:

/var/www/gitorious/app/vendor/bundle/ruby/2.0.0/gems/activerecord-3.2.19/lib/active_record/connection_adapters/abstract/connection_specification.rb:47:in `resolve_hash_connection': database configuration does not specify adapter (ActiveRecord::AdapterNotSpecified)
    from /var/www/gitorious/app/vendor/bundle/ruby/2.0.0/gems/activerecord-3.2.19/lib/active_record/connection_adapters/abstract/connection_specification.rb:41:in `resolve_string_connection'
    from /var/www/gitorious/app/vendor/bundle/ruby/2.0.0/gems/activerecord-3.2.19/lib/active_record/connection_adapters/abstract/connection_specification.rb:25:in `spec'
    from /var/www/gitorious/app/vendor/bundle/ruby/2.0.0/gems/activerecord-3.2.19/lib/active_record/connection_adapters/abstract/connection_specification.rb:130:in `establish_connection'
    from /var/www/gitorious/app/vendor/bundle/ruby/2.0.0/gems/activerecord-3.2.19/lib/active_record/railtie.rb:88:in `block (2 levels) in <class:Railtie>'
    from /var/www/gitorious/app/vendor/bundle/ruby/2.0.0/gems/activesupport-3.2.19/lib/active_support/lazy_load_hooks.rb:36:in `instance_eval'
    from /var/www/gitorious/app/vendor/bundle/ruby/2.0.0/gems/activesupport-3.2.19/lib/active_support/lazy_load_hooks.rb:36:in `execute_hook'
    from /var/www/gitorious/app/vendor/bundle/ruby/2.0.0/gems/activesupport-3.2.19/lib/active_support/lazy_load_hooks.rb:26:in `block in on_load'
    from /var/www/gitorious/app/vendor/bundle/ruby/2.0.0/gems/activesupport-3.2.19/lib/active_support/lazy_load_hooks.rb:25:in `each'
    from /var/www/gitorious/app/vendor/bundle/ruby/2.0.0/gems/activesupport-3.2.19/lib/active_support/lazy_load_hooks.rb:25:in `on_load'
    from /var/www/gitorious/app/vendor/bundle/ruby/2.0.0/gems/activerecord-3.2.19/lib/active_record/railtie.rb:80:in `block in <class:Railtie>'
    from /var/www/gitorious/app/vendor/bundle/ruby/2.0.0/gems/railties-3.2.19/lib/rails/initializable.rb:30:in `instance_exec'
    from /var/www/gitorious/app/vendor/bundle/ruby/2.0.0/gems/railties-3.2.19/lib/rails/initializable.rb:30:in `run'
    from /var/www/gitorious/app/vendor/bundle/ruby/2.0.0/gems/railties-3.2.19/lib/rails/initializable.rb:55:in `block in run_initializers'
    from /var/www/gitorious/app/vendor/bundle/ruby/2.0.0/gems/railties-3.2.19/lib/rails/initializable.rb:54:in `each'
    from /var/www/gitorious/app/vendor/bundle/ruby/2.0.0/gems/railties-3.2.19/lib/rails/initializable.rb:54:in `run_initializers'
    from /var/www/gitorious/app/vendor/bundle/ruby/2.0.0/gems/railties-3.2.19/lib/rails/application.rb:136:in `initialize!'
    from /var/www/gitorious/app/vendor/bundle/ruby/2.0.0/gems/railties-3.2.19/lib/rails/railtie/configurable.rb:30:in `method_missing'
    from /var/www/gitorious/app/config/environment.rb:5:in `<top (required)>'
    from /opt/rubies/ruby-2.0.0-p451/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:55:in `require'
    from /opt/rubies/ruby-2.0.0-p451/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:55:in `require'
    from ../import:10:in `<main>'

Ruby 不是我熟悉的语言,因此对我来说很难调试错误。

相关内容