Commit 988e6ac2058881429ced53323e954c2e029de2c9

Authored by Dmitriy Zaporozhets
1 parent 2398af9a

Fix #2220

Showing 1 changed file with 1 additions and 1 deletions   Show diff stats
lib/tasks/gitlab/backup.rake
@@ -116,7 +116,7 @@ namespace :gitlab do @@ -116,7 +116,7 @@ namespace :gitlab do
116 FileUtils.mkdir_p(backup_path_repo) until Dir.exists?(backup_path_repo) 116 FileUtils.mkdir_p(backup_path_repo) until Dir.exists?(backup_path_repo)
117 puts "Dumping repositories:" 117 puts "Dumping repositories:"
118 project = Project.all.map { |n| [n.path, n.path_to_repo] } 118 project = Project.all.map { |n| [n.path, n.path_to_repo] }
119 - project << ["gitolite-admin.git", File.join(File.dirname(project.first.second), "gitolite-admin.git")] 119 + project << ["gitolite-admin.git", File.join(Gitlab.config.git_base_path, "gitolite-admin.git")]
120 project.each do |project| 120 project.each do |project|
121 print "- Dumping repository #{project.first}... " 121 print "- Dumping repository #{project.first}... "
122 if Kernel.system("cd #{project.second} > /dev/null 2>&1 && git bundle create #{backup_path_repo}/#{project.first}.bundle --all > /dev/null 2>&1") 122 if Kernel.system("cd #{project.second} > /dev/null 2>&1 && git bundle create #{backup_path_repo}/#{project.first}.bundle --all > /dev/null 2>&1")