Skip to content

Instantly share code, notes, and snippets.

@waja
Created March 18, 2014 14:28
Show Gist options
  • Save waja/9621170 to your computer and use it in GitHub Desktop.
Save waja/9621170 to your computer and use it in GitHub Desktop.
diff --git a/lib/tasks/gitlab/backup.rake b/lib/tasks/gitlab/backup.rake
index ae2b1bb..f6aacce 100644
--- a/lib/tasks/gitlab/backup.rake
+++ b/lib/tasks/gitlab/backup.rake
@@ -157,8 +157,8 @@ namespace :gitlab do
# Build a backup path
path_to_bundle = File.join(backup_path_repo, project.path_with_namespace + ".bundle")
-
- if Kernel.system("git clone --bare #{path_to_bundle} #{project.repository.path_to_repo} > /dev/null 2>&1")
+ path_to_repo = File.join(repos_path, project.path_with_namespace + ".git")
+ if Kernel.system("git clone --bare #{path_to_bundle} #{path_to_repo} > /dev/null 2>&1")
puts "[DONE]".green
else
puts "[FAILED]".red
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment