diff options
author | Robert Speicher <robert@gitlab.com> | 2017-04-05 17:22:45 +0000 |
---|---|---|
committer | Robert Speicher <robert@gitlab.com> | 2017-04-05 17:22:45 +0000 |
commit | ebdfda69bf8934ee8322e9d863872c5bcc379bcc (patch) | |
tree | bd32888dbfa047343e69ce4ce4667c50652fc009 /db | |
parent | fec40d78a799a9cf0f71868053493ce6d34ebbce (diff) | |
parent | 56cf0274a00ee4f2e21d6b1d0a41ea1642a1268f (diff) | |
download | gitlab-ce-ebdfda69bf8934ee8322e9d863872c5bcc379bcc.tar.gz |
Merge branch 'gitaly-refs' into 'master'
Implement Gitaly refs client
See merge request !9291
Diffstat (limited to 'db')
-rw-r--r-- | db/migrate/20140502125220_migrate_repo_size.rb | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/db/migrate/20140502125220_migrate_repo_size.rb b/db/migrate/20140502125220_migrate_repo_size.rb index 66203486d53..f5d5d834307 100644 --- a/db/migrate/20140502125220_migrate_repo_size.rb +++ b/db/migrate/20140502125220_migrate_repo_size.rb @@ -8,11 +8,10 @@ class MigrateRepoSize < ActiveRecord::Migration project_data.each do |project| id = project['id'] namespace_path = project['namespace_path'] || '' - repos_path = Gitlab.config.gitlab_shell['repos_path'] || Gitlab.config.repositories.storages.default['path'] - path = File.join(repos_path, namespace_path, project['project_path'] + '.git') + path = File.join(namespace_path, project['project_path'] + '.git') begin - repo = Gitlab::Git::Repository.new(path) + repo = Gitlab::Git::Repository.new('default', path) if repo.empty? print '-' else |