Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2012-12-22 16:34:38 +0400
committerDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2012-12-22 16:34:38 +0400
commit988e6ac2058881429ced53323e954c2e029de2c9 (patch)
treed0529b55482c9cf60381c8a75d43f9944a45baae
parent2398af9ab03e79f807c5e989cd25aafe0799a61e (diff)
Fix #2220v4.0.0rc2
-rw-r--r--lib/tasks/gitlab/backup.rake2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/tasks/gitlab/backup.rake b/lib/tasks/gitlab/backup.rake
index b7a64394ad0..44da6d671e0 100644
--- a/lib/tasks/gitlab/backup.rake
+++ b/lib/tasks/gitlab/backup.rake
@@ -116,7 +116,7 @@ namespace :gitlab do
FileUtils.mkdir_p(backup_path_repo) until Dir.exists?(backup_path_repo)
puts "Dumping repositories:"
project = Project.all.map { |n| [n.path, n.path_to_repo] }
- project << ["gitolite-admin.git", File.join(File.dirname(project.first.second), "gitolite-admin.git")]
+ project << ["gitolite-admin.git", File.join(Gitlab.config.git_base_path, "gitolite-admin.git")]
project.each do |project|
print "- Dumping repository #{project.first}... "
if Kernel.system("cd #{project.second} > /dev/null 2>&1 && git bundle create #{backup_path_repo}/#{project.first}.bundle --all > /dev/null 2>&1")