Last active 6 months ago

waja revised this gist 11 years ago. Go to revision

1 file changed, 15 insertions

backup_fix_gitlab_4.2.patch(file created)

@@ -0,0 +1,15 @@
1 + diff --git a/lib/tasks/gitlab/backup.rake b/lib/tasks/gitlab/backup.rake
2 + index ae2b1bb..f6aacce 100644
3 + --- a/lib/tasks/gitlab/backup.rake
4 + +++ b/lib/tasks/gitlab/backup.rake
5 + @@ -157,8 +157,8 @@ namespace :gitlab do
6 +
7 + # Build a backup path
8 + path_to_bundle = File.join(backup_path_repo, project.path_with_namespace + ".bundle")
9 + -
10 + - if Kernel.system("git clone --bare #{path_to_bundle} #{project.repository.path_to_repo} > /dev/null 2>&1")
11 + + path_to_repo = File.join(repos_path, project.path_with_namespace + ".git")
12 + + if Kernel.system("git clone --bare #{path_to_bundle} #{path_to_repo} > /dev/null 2>&1")
13 + puts "[DONE]".green
14 + else
15 + puts "[FAILED]".red
Newer Older