Created
March 18, 2014 14:28
-
-
Save waja/9621170 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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