diff options
| author | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2013-10-11 09:32:38 +0000 |
|---|---|---|
| committer | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2013-10-11 09:32:38 +0000 |
| commit | 10fac475277f469556ddc3ef274743d8776eae74 (patch) | |
| tree | 6b2dcb6668b3d1443765b2154bffa55dbdfb8361 /lib | |
| parent | 9fa94cad560d9443d3d08307b3902791fb711b95 (diff) | |
| parent | cb6a86ed622bae50dad97cb67b9b7212806bb3c8 (diff) | |
| download | gitlab-ce-10fac475277f469556ddc3ef274743d8776eae74.tar.gz | |
Merge branch 'wiki_backup' of /home/git/repositories/gitlab/gitlabhq
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/backup/repository.rb | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/backup/repository.rb b/lib/backup/repository.rb index c5e3d049fd7..252201f11be 100644 --- a/lib/backup/repository.rb +++ b/lib/backup/repository.rb @@ -28,7 +28,9 @@ module Backup if File.exists?(path_to_repo(wiki)) print " * #{wiki.path_with_namespace} ... " - if system("cd #{path_to_repo(wiki)} > /dev/null 2>&1 && git bundle create #{path_to_bundle(wiki)} --all > /dev/null 2>&1") + if wiki.empty? + puts " [SKIPPED]".cyan + elsif system("cd #{path_to_repo(wiki)} > /dev/null 2>&1 && git bundle create #{path_to_bundle(wiki)} --all > /dev/null 2>&1") puts " [DONE]".green else puts " [FAILED]".red |
